You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@kafka.apache.org by 夏昀 <ki...@126.com> on 2017/06/22 12:15:59 UTC

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

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!
                                                            

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

Posted by Hans Jespersen <ha...@confluent.io>.
Do you list all three brokers on your consumers bootstrap-server list?

-hans

> On Jun 22, 2017, at 5:15 AM, 夏昀 <ki...@126.com> 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!