kafka-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jun Rao <jun...@gmail.com>
Subject Re: Exception causing Kafka to crash
Date Fri, 07 Oct 2011 15:31:36 GMT
Another way is to do the clean shutdown, instead of the force shutdown. This
will cause the ZK client to be closed and all ephemeral nodes created by
this client removed.


On Fri, Oct 7, 2011 at 7:35 AM, Mathias Herberts <mathias.herberts@gmail.com
> wrote:

> If you abort Kafka (killing the JVM for example) and restart it,
> depending on the zookeeper timeout you've used, it might occur that
> the ephemeral node create by the broker has not yet been removed by
> ZK.
> If this is the case, Kafka will detect that there is a znode conflict
> and kill itself.
> This is what your logs seem to imply:
> [2011-10-03 15:33:22,229] INFO conflict in /brokers/ids/0 data:
> stored data:
> (kafka.utils.ZkUtils$)
> Try to either wait for more than the ZK timeout prior to restarting
> Kafka, or lower the ZK timeout so the ephemeral node is indeed gone
> when you restart Kafka.
> Mathias.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message