Re: Best ways to unit test consumer that is based on simpleConsumer

2014-03-12 Thread Vadim Keylis
Additional information. We currently using kafka 0.8 and client will be written in java. On Wed, Mar 12, 2014 at 10:41 PM, Vadim Keylis wrote: > Good evening. I am writing consumer that is based on SimpleConsumer. I > would like to write integration/unit tests that simulate different error > re

Best ways to unit test consumer that is based on simpleConsumer

2014-03-12 Thread Vadim Keylis
Good evening. I am writing consumer that is based on SimpleConsumer. I would like to write integration/unit tests that simulate different error responses from kafka to make sure my code handles it properly. How do you guys advised to do this within my unit test? Do you have some kind of mock kafka

What's new in Kafka 0.8.1?

2014-03-12 Thread Jay Kreps
Hi guys, I wrote up a quick blog post on the new stuff in 0.8.1: http://blog.empathybox.com/post/79427855885/whats-new-in-kafka-0-8-1 This provides a little more human readable version of the release notes. Let me know if I missed anything. -Jay

Re: Large number of sockets to JMX port in CLOSE_WAIT on 0.7.2 broker

2014-03-12 Thread Otis Gospodnetic
I don't think this is a Kafka problem. We read from Kafka JMX every few seconds with SPM and don't see this problem with 0.7.2. Maybe a Jolokia bug? Otis -- Performance Monitoring * Log Analytics * Search Analytics Solr & Elasticsearch Support * http://sematext.com/ On Wed, Mar 12, 2014 at 4:0

Re: [ANNOUNCEMENT] Apache Kafka 0.8.1 Released

2014-03-12 Thread Otis Gospodnetic
Yes: https://cwiki.apache.org/confluence/display/KAFKA/Migrating+from+0.7+to+0.8 Otis -- Performance Monitoring * Log Analytics * Search Analytics Solr & Elasticsearch Support * http://sematext.com/ On Wed, Mar 12, 2014 at 6:01 PM, Kane Kane wrote: > Is it possible to update from 0.8 on the f

Re: [ANNOUNCEMENT] Apache Kafka 0.8.1 Released

2014-03-12 Thread Jay Kreps
That is a good point Michael. It looks like Joe fixed the typo. I added an explanation of the scala versioning. -Jay On Wed, Mar 12, 2014 at 2:17 PM, Michael G. Noll wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Many thanks to everyone involved in the release! > > Please let me s

Re: [ANNOUNCEMENT] Apache Kafka 0.8.1 Released

2014-03-12 Thread Neha Narkhede
>> Is it possible to update from 0.8 on the fly (rolling upgrade)? Yes. On Wed, Mar 12, 2014 at 3:59 PM, ted won wrote: > Congrats!! I love Apache Kafka ~ > On Mar 13, 2014 1:34 AM, "Joe Stein" wrote: > > > The Apache Kafka community is pleased to announce the general > availability > > relea

Re: [ANNOUNCEMENT] Apache Kafka 0.8.1 Released

2014-03-12 Thread ted won
Congrats!! I love Apache Kafka ~ On Mar 13, 2014 1:34 AM, "Joe Stein" wrote: > The Apache Kafka community is pleased to announce the general availability > release of Apache Kafka 0.8.1. > > The 0.8.1 release introduces log compaction > http://kafka.apache.org/documentation.html#compaction and a

Re: Kafka Cluster management

2014-03-12 Thread Todd Palino
I apologize, you are correct. I forgot that you can pass in a list of hosts. Using a balancer is the way we handle it here, mostly because we have many producers, and they are not all under our direct control. To answer the question of what load balancer, we have hardware load balancers in place i

Re: [ANNOUNCEMENT] Apache Kafka 0.8.1 Released

2014-03-12 Thread Kane Kane
Is it possible to update from 0.8 on the fly (rolling upgrade)? On Wed, Mar 12, 2014 at 2:17 PM, Michael G. Noll wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Many thanks to everyone involved in the release! > > Please let me share two comments: > > One, there's a typo on the Downl

Re: [ANNOUNCEMENT] Apache Kafka 0.8.1 Released

2014-03-12 Thread Michael G. Noll
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Many thanks to everyone involved in the release! Please let me share two comments: One, there's a typo on the Downloads page [1] for the text of the source download link: It incorrectly says "kafka-0.8.0-src.tgz" instead of "kafka-0.8.1-src.tgz". (

Re: Kafka Cluster management

2014-03-12 Thread Cassa L
Hi Todd, I am not very clear about you mentioned - "Both the producer and consumer clients will take care of rebalancing if there is a broker failure." " For the producer side, you do need some sort of front end to handle the metadata requests, or else you would constantly have to change your pro

Large number of sockets to JMX port in CLOSE_WAIT on 0.7.2 broker

2014-03-12 Thread Saulius Zemaitaitis
Hello, I'm seeing a large number of sockets to JMX port in CLOSE_WAIT state with one of our Kafka 0.7.2 brokers. We use Jolokia to collect stats every minute. Are there any known issues in this area? Thanks, Saulius

Re: [ANNOUNCEMENT] Apache Kafka 0.8.1 Released

2014-03-12 Thread Olivier Pomel
+1, as usual, thanks for the great work. Cheers, -- Olivier Pomel | CEO, Datadog | http://datadog.com On Wed, Mar 12, 2014 at 12:43 PM, Dan Di Spaltro wrote: > Congratulations, great release! > > > On Wed, Mar 12, 2014 at 9:31 AM, Joe Stein wrote: > > > The Apache Kafka community is pleased to

Re: [ANNOUNCEMENT] Apache Kafka 0.8.1 Released

2014-03-12 Thread Dan Di Spaltro
Congratulations, great release! On Wed, Mar 12, 2014 at 9:31 AM, Joe Stein wrote: > The Apache Kafka community is pleased to announce the general availability > release of Apache Kafka 0.8.1. > > The 0.8.1 release introduces log compaction > http://kafka.apache.org/documentation.html#compaction

[ANNOUNCEMENT] Apache Kafka 0.8.1 Released

2014-03-12 Thread Joe Stein
The Apache Kafka community is pleased to announce the general availability release of Apache Kafka 0.8.1. The 0.8.1 release introduces log compaction http://kafka.apache.org/documentation.html#compaction and a move to Gradle for builds. Other changes in this release: https://archive.apache.or

Re: Error handling in async Producer

2014-03-12 Thread Jun Rao
If all brokers are down, the async send will fail. In trunk, we have a new producer written in java, which allows the caller to register a callback during async send. Thanks, Jun On Wed, Mar 12, 2014 at 6:52 AM, Yury Ruchin wrote: > Hi, > > Having Kafka 0.8, I send messages using Producer in

Re: How to configure KAFKA outborne ports

2014-03-12 Thread Jun Rao
Will the following help? https://cwiki.apache.org/confluence/display/KAFKA/FAQ#FAQ-Whycan'tmyconsumers/producersconnecttothebrokers ? Thanks, Jun On Wed, Mar 12, 2014 at 12:31 AM, kamal wrote: > Hi, > We are running KAFKA behind firewall. How to configure the KAFKA outborne > ports? > > > Re

Re: Error handling in async Producer

2014-03-12 Thread Viktor Kolodrevskiy
I had similar questions some time ago. Here's answer I've got: > In Kafka, we detect failures using ZK. So, if the network connectivity btw > the producer and the broker is down, but the one btw the broker and ZK is > up, we assume the broker is still alive and will continue to send the data > to

Error handling in async Producer

2014-03-12 Thread Yury Ruchin
Hi, Having Kafka 0.8, I send messages using Producer in async mode. I wonder what will happen if a message cannot be sent (e. g. all brokers get down). In sync mode, error handling is straightforward: after "message.send.max.retries" the send() method will throw FailedToSendMessageException. Howe

Re: Kafka Cluster management

2014-03-12 Thread Atig
Hello Can you elaborate on what is your producer setup in terms of fetching the metadata (in conjunction with a load balancer) and some sort of code skeleton? New to Kafka here. Also, if you don't mind sharing what do you use as load balancer in this scenario? Thanks --- Original Message ---

How to configure KAFKA outborne ports

2014-03-12 Thread kamal
Hi, We are running KAFKA behind firewall. How to configure the KAFKA outborne ports? Regards, Kamal C -- Open WebMail Project (http://openwebmail.org) -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.

Re: Kafka Cluster management

2014-03-12 Thread Todd Palino
Both the producer and consumer clients will take care of rebalancing if there is a broker failure. The consumer handles this entirely in Zookeeper. For the producer side, you do need some sort of front end to handle the metadata requests, or else you would constantly have to change your producer c