note that --zookeeper is the location of the zookeeper server, not Kafka broker.
Are you running zookeeper on both 192.168.100.91 and 192.168.100.92? Zookeeper is based on simple majority, therefore you can't run it with 2 nodes (well you can, but it will freeze if you lose one node), you need either 1 or 3. In your case it makes sense to have two Kafka brokers and one Zookeeper node (which you already have on 192.168.100.91). Gwen On Tue, Oct 28, 2014 at 2:24 AM, 天天向上 <jschun...@163.com> wrote: > | | | > | > | | > > > 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!!! > > > > > > > > > > > > | | > | > | | |