kafka monitoring

2013-10-24 Thread Kane Kane
I see this MBean: kafka.server:name=AllTopicsMessagesInPerSec,type=BrokerTopicMetrics Does it return number per broker or per cluster? If it's per broker how to get global value per cluster and vice versa? Thanks.

Re: kafka monitoring

2013-10-24 Thread Simon Hørup Eskildsen
This is per broker. What we do is use JMXtrans (https://github.com/jmxtrans/jmxtrans) to pull this data into statsd. To get all messages into the cluster at once, we sum over all the brokers in Graphite. On Thu, Oct 24, 2013 at 4:49 AM, Kane Kane kane.ist...@gmail.com wrote: I see this MBean:

Understanding how producers and consumers behave in case of node failures in 0.8

2013-10-24 Thread Aniket Bhatnagar
I am trying to understand and document how producers consumers will/should behave in case of node failures in 0.8. I know there are various other threads that discuss this but I wanted to bring all the information together in one post. This should help people building producers consumers in

Re: kafka monitoring

2013-10-24 Thread Monika Garg
It is perBroker. It gives the count of messages that a broker has. As per my understanding to get it at cluster level,the messages count at each broker needs to be summed up. On Thu, Oct 24, 2013 at 2:19 PM, Kane Kane kane.ist...@gmail.com wrote: I see this MBean:

RE: Kafka 0.8.0-beta1 with Spark Streaming

2013-10-24 Thread Arindam Paul
Thanks Neha. That was the issue. Configuring the right access policies in AWS solved the problem. Thanks again.

Re: Understanding how producers and consumers behave in case of node failures in 0.8

2013-10-24 Thread Neha Narkhede
Yes. And during retries, the producer and consumer refetch metadata. Thanks, Neha On Oct 24, 2013 3:09 AM, Aniket Bhatnagar aniket.bhatna...@gmail.com wrote: I am trying to understand and document how producers consumers will/should behave in case of node failures in 0.8. I know there are

Re: Understanding how producers and consumers behave in case of node failures in 0.8

2013-10-24 Thread Aniket Bhatnagar
Thanks Neha On 24 October 2013 18:11, Neha Narkhede neha.narkh...@gmail.com wrote: Yes. And during retries, the producer and consumer refetch metadata. Thanks, Neha On Oct 24, 2013 3:09 AM, Aniket Bhatnagar aniket.bhatna...@gmail.com wrote: I am trying to understand and document how

question about default key

2013-10-24 Thread Yu, Libo
Hi team, If I don't specify a key when publishing a message, a default key will be generated. In this case, how long is the default key and will the consumer get this default key? Thanks. Libo

Re: question about default key

2013-10-24 Thread Neha Narkhede
The default key is null. Thanks, Neha On Oct 24, 2013 6:47 AM, Yu, Libo libo...@citi.com wrote: Hi team, If I don't specify a key when publishing a message, a default key will be generated. In this case, how long is the default key and will the consumer get this default key? Thanks.

RE: question about default key

2013-10-24 Thread Yu, Libo
Got it. Thanks. Regards, Libo -Original Message- From: Neha Narkhede [mailto:neha.narkh...@gmail.com] Sent: Thursday, October 24, 2013 10:09 AM To: users@kafka.apache.org Subject: Re: question about default key The default key is null. Thanks, Neha On Oct 24, 2013 6:47 AM, Yu, Libo

Re: Broker bind address versus published hostname in ZooKeeper

2013-10-24 Thread Timothy Chen
Hi Folks/Roger, Unfortunately I don't have legal clearance to contribute patches yet back to Kafka for code done at work, so Roger it will be great if you can provide this patch. Thanks! Tim On Mon, Oct 21, 2013 at 11:17 AM, Roger Hoover roger.hoo...@gmail.comwrote: Agreed. Tim, it would

Re: preparing for the 0.8 final release

2013-10-24 Thread Jun Rao
At this moment, we have resolved all jiras that we intend to fix in 0.8.0 final. Joe, Would you like to drive the 0.8.0 final release again? Thanks, Jun On Mon, Oct 21, 2013 at 8:53 PM, Jun Rao jun...@gmail.com wrote: Hi, Everyone, At this moment, we have only one remaining jira

Re: preparing for the 0.8 final release

2013-10-24 Thread Joe Stein
Sounds good, yup! /*** Joe Stein Founder, Principal Consultant Big Data Open Source Security LLC http://www.stealth.ly Twitter: @allthingshadoop / On Oct 24, 2013, at 1:12 PM, Jun Rao jun...@gmail.com

Re: Understanding how producers and consumers behave in case of node failures in 0.8

2013-10-24 Thread Kane Kane
publishing to and consumption from the partition will halt and will not resume until the faulty leader node recovers Can you confirm that's the case? I think they won't wait until leader recovered and will try to elect new leader from existing non-ISR replicas? And in case if they wait, and

Re: Understanding how producers and consumers behave in case of node failures in 0.8

2013-10-24 Thread Neha Narkhede
Yes, when a leader dies, the preference is to pick a leader from the ISR. If not, the leader is picked from any other available replica. But if no replicas are alive, the partition goes offline and all production and consumption halts, until at least one replica is brought online. Thanks, Neha

Re: Understanding how producers and consumers behave in case of node failures in 0.8

2013-10-24 Thread Chris Bedford
Thank you for posting these guidelines. I'm wondering if anyone out there that is using the Kafka spout (for Storm) knows whether or not the Kafka spout takes care of these types of details ? regards -chris On Thu, Oct 24, 2013 at 2:05 PM, Neha Narkhede neha.narkh...@gmail.comwrote: Yes,

Re: Understanding how producers and consumers behave in case of node failures in 0.8

2013-10-24 Thread Aniket Bhatnagar
I am planning to use kafka 0.8 spout and after studing the source code found that it doesnt handle errors. There is a fork that adds try catch over using fetchResponse but my guess is this will lead to spout attempting the same partition infinitely until the leader is elected/comes back online. I

how request.required.acks works

2013-10-24 Thread Kane Kane
If i set request.required.acks to -1, and set relatively short request.timeout.ms and timeout happens before all replicas acknowledge the write - would be message written to the leader or dropped?

Re: how request.required.acks works

2013-10-24 Thread Guozhang Wang
Hi, In this case the request would be treated as timed out and hence failed, if the producer is async then after the number of retries it still failed, the messages will be dropped. Guozhang On Thu, Oct 24, 2013 at 6:50 PM, Kane Kane kane.ist...@gmail.com wrote: If i set

Re: how request.required.acks works

2013-10-24 Thread Kane Kane
Hello Neha, does it mean even if not all replica acknowledged and timeout kicked in and producer get an exception - message still will be written? Thanks. On Thu, Oct 24, 2013 at 8:08 PM, Neha Narkhede neha.narkh...@gmail.comwrote: The message will be written to the leader as well as the