maxwell指定kafka分区启动报错
[root@master maxwell-1.29.0]# bin/maxwell --config ./config.properties
Using kafka version: 1.0.0
please specify --producer_partition_by=database|table|primary_key|transaction_id|thread_id|column|random
Option Description
------ -----------
--producer_partition_by <String> database|table|primary_key|transaction_id|column|random, producer will partition by this value
--producer_partition_columns <String> with producer_partition_by=column, partition by the value of these columns. comma separated.
--producer_partition_by_fallback <String> database|table|primary_key|transaction_id, fallback to this value when using 'column' partitioning and the columns are not present in the row
--help [String] display help
在使用过程中,我使用配置文件启动maxwell,结果给我报了这个错误,这个错误只要是讲我没有指定分区要求
解决方法
前面少了 –
--producer_partition_by=database
成功启动