Unable to send/receive messages in Multi Node Kafka cluster -


i have multi node kafka cluster, im able create topics successfully, clear in zookeeper logs. cant send/receive messages of topics though created.

also dont see logs created topics of them in /tmp/kafka-logs directory in of kafka brokers part of 3 nodes.

for example: if had created topic1...topic5. i'm able send , receive messages topic3,topic4. have producer & consumer running in node1. idea if i'm doing wrong here?

on producer side:

private properties producerconfig() {   properties props = new properties();   props.put("bootstrap.servers", "host1:9092,host2:9092,host3:9092");   props.put("acks", "all");   props.put("retries", 0);   props.put("key.serializer", "org.apache.kafka.common.serialization.stringserializer");   props.put("value.serializer", "org.apache.kafka.common.serialization.stringserializer");  return props; } 

on consumer side:

     private properties createconsumerconfig(string zookeeper, string groupid) {         properties props = new properties();         props.put("zookeeper.connect", "host1:2181,host2:2181,host3:2181");         props.put("group.id", groupid);         props.put("auto.commit.enable", "false");         props.put("auto.offset.reset", "smallest");          return props;       } 

multi node cluster setup:

i have used following instructions setup multi node cluster.

host1 :: zk1,kafkabroker1 host2 :: zk2,kafkabroker2 host3 :: zk3,kafkabroker3 

https://itblog.adrian.citu.name/2014/01/30/how-to-set-an-apache-kafka-multi-node-multi-broker-cluster/


Comments

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -