Re: how to do disaster recovery for kafka 0.8 cluster with consumers that uses high-level consumer api?

2014-10-20 Thread Jun Rao
If the whole cluster is down and you allow unclean leader election on the broker, some exposed messages on the broker could be lost when restarting the brokers. When that happens, the consumers may need to reset their offset since the current offsets may no longer be valid. By default, the offset

Re: how to do disaster recovery for kafka 0.8 cluster with consumers that uses high-level consumer api?

2014-10-19 Thread Jun Rao
Did you set the replication factor to be more than 1? Thanks, Jun On Sat, Oct 18, 2014 at 2:32 AM, Yu Yang yuyan...@gmail.com wrote: Hi all, We have a kafka 0.8.1 cluster. We implemented a consumers for the topics on the Kafka 0.8 cluster using high-level consumer api. We observed that if

Re: how to do disaster recovery for kafka 0.8 cluster with consumers that uses high-level consumer api?

2014-10-19 Thread Yu Yang
Thanks, Jun! Yes, I set the topic replication factor to 3. On Sun, Oct 19, 2014 at 8:09 PM, Jun Rao jun...@gmail.com wrote: Did you set the replication factor to be more than 1? Thanks, Jun On Sat, Oct 18, 2014 at 2:32 AM, Yu Yang yuyan...@gmail.com wrote: Hi all, We have a kafka