bin/maxwell --user='maxwell' --password='123456' --host='10.199.140.143' --producer=stdout --daemon
bin/maxwell --user='maxwell' --password='123456' --host='10.199.140.143' \
--producer=kafka --kafka.bootstrap.servers=10.199.151.15:9092 --kafka_topic=wsk_maxwell_test
bin/maxwell --user='maxwell' --password='123456' --host='10.199.140.143' --client_id=test --daemon \
--producer=kafka --kafka.bootstrap.servers=10.199.151.15:9092 --kafka_topic=wsk_maxwell_test \
--filter='exclude: *.*, include: bdps_dcs_test.dcs_script, include: bdps_dcs_test.dcs_task_table'
bin/maxwell --user='maxwell' --password='123456' --host='10.199.140.143' --client_id=test \
--producer=kafka --kafka.bootstrap.servers=10.199.151.15:9092 --kafka_topic=wsk_maxwell_test \
--producer_partition_by=column --producer_partition_columns='id' --producer_partition_by_fallback=primary_key \
--filter='exclude: *.*, include: bdps_dcs_test.dcs_script, include: bdps_dcs_test.dcs_task_table'
bin/maxwell --config=/home/wsk/app/maxwell-1.24.1/wsk_properties/10_199_139_12.properties --daemon
maxwell引导某张表全量数据时会多发三条消息,首两条是引导的配置信息、引导开始信息,结尾一条是引导结束信息
命令行:
bin/maxwell-bootstrap --user='maxwell' --password='123456' --host='10.199.140.143' --client_id=test \
--database bdps_dcs_test --table dcs_task_table
SQL:
insert into maxwell.bootstrap (database_name, table_name,client_id ) values ('bdps_dcs_test', 'dcs_task_table','test');
bin/maxwell-bootstrap --user='maxwell' --password='123456' --host='10.199.140.143' \
--abort 3
bin/maxwell-bootstrap --user='maxwell' --password='123456' --host='10.199.140.143' \
--monitor 3
略