I get this problem when I'm trying to use kafka-mirror-maker.sh
By Running this command:
bin/kafka-mirror-maker.sh --consumer.config config/consumer.properties --producer.config config/producer.properties --whitelist "topicName"
Here are my configuration files:
1.producer.properties
bootstrap.servers=target_server_cluster_ips_with_kafka_port
acks=-1
linger.ms=100
batch.size=16384
retries=3
security.protocol=SASL_PLAINTEXT
sasl.mechanism=PLAIN
sasl.jaas.config=org.apache.kafka.common.security.plain.PlainLoginModule required username="username" password="password";
compression.type=none
2.consumer.properties
bootstrap.servers=source_server_cluster_ips_with_kafka_port
enable.auto.commit=true
auto.offset.reset=earliest
auto.commit.interval.ms=1000
security.protocol=SASL_PLAINTEXT
sasl.mechanism=PLAIN
sasl.jaas.config=org.apache.kafka.common.security.plain.PlainLoginModule required username="username" password="password";
group.id=mirror-maker-group
Apache Kafka Version Info: kafka_2.13-2.7.2
Reference Link:
https://cwiki.apache.org/confluence/display/KAFKA/KIP-382%3A+MirrorMaker+2.0