Re: help!Kafka failover do not work as expected in Kafka quick start tutorial

2017-06-22 Thread Hans Jespersen
Do you list all three brokers on your consumers bootstrap-server list?

-hans

> On Jun 22, 2017, at 5:15 AM, 夏昀  wrote:
> 
> hello:
> I am trying the quickstart of kafka documentation,link is, 
> https://kafka.apache.org/quickstart. when I moved to Step 6: Setting up a 
> multi-broker cluster,I have deployed 3 kafka broker instance.I killed either 
> server-1 or server-2, everything goes well as the document says. But when I 
> killed the firet broker where brokeID=0, the consumer can't read the new 
> records produced by producer. When I restart the broker 0,consumer can 
> display new messages. why the system work well when broker1 or broker 2 is 
> killed,but can't work when broker 0 is killed?
> can you explain this for me, thank you very much!


help!Kafka failover do not work as expected in Kafka quick start tutorial

2017-06-22 Thread 夏昀
hello:
I am trying the quickstart of kafka documentation,link is, 
https://kafka.apache.org/quickstart. when I moved to Step 6: Setting up a 
multi-broker cluster,I have deployed 3 kafka broker instance.I killed either 
server-1 or server-2, everything goes well as the document says. But when I 
killed the firet broker where brokeID=0, the consumer can't read the new 
records produced by producer. When I restart the broker 0,consumer can display 
new messages. why the system work well when broker1 or broker 2 is killed,but 
can't work when broker 0 is killed?
can you explain this for me, thank you very much!