| | | | | |
hello, I have two kafka_server,IP address is 192.168.100.91 192.168.100.92 broker 0:192.168.100.91 broker 1 :192.168.100.92 At broker 0: bin/kafka-topics.sh --create --zookeeper 192.168.100.91:2181 --topic qaz --partition 3 --replication-factor 2 bin/kafka-topics.sh --describe --zookeeper 192.168.100.91:2181 --topic qaz Topic:qaz PartitionCount:3 ReplicationFactor:2 Configs: Topic: qaz Partition: 0 Leader: 1 Replicas: 1,0 Isr: 1,0 Topic: qaz Partition: 1 Leader: 0 Replicas: 0,1 Isr: 0,1 Topic: qaz Partition: 2 Leader: 1 Replicas: 1,0 Isr: 1,0 I can execure this : bin/kafka-console-consumer.sh --zookeeper 192.168.100.91:2181 --topic qaz --from-beginning But i can't execure the next ,No matter whether the broker 0 is normal: bin/kafka-console-consumer.sh --zookeeper 192.168.100.92:2181 --topic qaz --from-beginning prompt:kafka no brokers found。 at this time ,the broker 1 is normal。 Thanks!!! | | | | | |