Create topic fails

2015-09-15 Thread Chittaranjan Hota
Hi, We run a 10 node cluster in production with 5 zk nodes. The cluster is operating fine without issues with other topics(we have close to 10 topics). However, when we try to create new topic, it doesnt go through successfully. Have tried it couple of times with same result. Topic shows as

New to Apache Kafka

2015-09-15 Thread Joe San
Hi Apache Kafka, I'm evaluating Apache Kafka for one of the projects that I'm into. I have used ActiveMQ in the past which makes using Kafka pretty straightforward. One thing that I do not understand is the need for Zookeeper? I understand what Zookeeper is, but I fail to understand what purpose

Failed to Send Message After 3 Tries

2015-09-15 Thread Leng, Hao
Hi there, We had error logs for three messages failed to produce to Kafka during last week. All three are failed on the same day within one hour range. We checked Kafka logs (server.log and statechange.log) but found no abnormal behaviors. The exception is :

Dead letter queue support in Kafka

2015-09-15 Thread Alexander Pakulov
Hi everyone, Since Kafka doesn’t have a dead-letter queue support built in - I’m looking for advice and best approaches to handle bad messages or cases when system is going crazy, once you receive an exception it basically means you’re blocking the whole kaka-stream from consuming other

Re: 0.9.0.0 remaining jiras

2015-09-15 Thread Jason Rosenberg
I'd be interested to see: https://issues.apache.org/jira/browse/KAFKA-2434 (has patch available, we will be using 'old' consumer for some time) https://issues.apache.org/jira/browse/KAFKA-2125 (seems rather serious, unclear if no longer relevant with new code?)

Re: New to Apache Kafka

2015-09-15 Thread Li Tao
As a cluster, each none in the cluster should know each other to function properly. For a Cassandra cluster(I don't know ActiveMQ's mechanism), as an example, it has its own protocal to communicate with each other to know their condition. For Kafka, each node stays independantly, they use

Re: New to Apache Kafka

2015-09-15 Thread Ashish Shenoy
Zookeeper is a distributed coordination service. Kafka uses Zookeeper for various things like leader election, storing consumer-partition offsets etc. More information on each service is available at http://kafka.apache.org/documentation.html and https://zookeeper.apache.org/ I highly recommend

Dead letter queue support in Kafka

2015-09-15 Thread Alexander Pakulov
Hi everyone, Since Kafka doesn’t have a dead-letter queue support built in - I’m looking for advice and best approaches to handle bad messages or cases when system is going crazy, once you receive an exception it basically means you’re blocking the whole kaka-stream from consuming other

Re: kafka consumer thread killed - no more message consumption

2015-09-15 Thread Li Tao
Hi, I think there is no difference between shutting down a consumer or killing a consumer. For the whole system, it only means a consumer has left for some reason which is not interested. So if you kill a consumer, some consumer in the same consumer group should take over and consume messages.

Re: 0.9.0.0 remaining jiras

2015-09-15 Thread Jason Rosenberg
Yep, It looks like this was only communicated originally to the dev list (and not the users list), so it wasn't obvious to all! Thanks, Jason On Mon, Sep 14, 2015 at 12:43 AM, Stevo Slavić wrote: > Hello Jason, > > Maybe this answers your question: > >

Re: Failed to Send Message After 3 Tries

2015-09-15 Thread Helleren, Erik
So, this is expected behavior on the producer when its unable to communicate with the kafka broker that is the leader for the message is being sent. First, if the design of your app allows, try to migrate to the new producer API release is 0.8.1 It is fully asynchronous, and provides callbacks

Durability and Integrity for long standing key-compacted log.

2015-09-15 Thread Bart Wyatt
Hello, We have a set of processing jobs (in samza) using key compacted Kafka logs as a durable Key-Value store. Recently, after some network troubles that resulted in various parts of the infrastructure rebooting, we discovered that a key that we expected to be "alive" was compacted out of

Re: Question on Kafka Replication

2015-09-15 Thread Todd Palino
I put an answer to this on Stack Overflow. Basically, that's not how RF works for Kafka. It's not a guarantee, it's just how the partitions are created, and how it is reported when something is down (under replicated partitions). While there is an option to do auto leader rebalancing, there's no

kafka consumer thread killed - no more message consumption

2015-09-15 Thread Jürgen Ziegler
Hi all, I'm playing around with the kafka high level java api. If I have multiple consumers in a group, consuming the same topic with a single partition, only one consumer will receive messages, as is expected. When shutting down the consumer, another consumer will automatically consume the

Re: New Consumer & committed offsets

2015-09-15 Thread Damian Guy
I turned off compression and still get duplicates, but only 1 from each topic. Should the initial fetch offset for a partition be committed offset +1 ? Thanks, Damian On 15 September 2015 at 14:07, Damian Guy wrote: > Hi, > > I've been trying out the new consumer and have

Re: New Consumer & committed offsets

2015-09-15 Thread Stevo Slavić
Hello Damian, Yes, there's a +1 difference. See related discussion http://mail-archives.apache.org/mod_mbox/kafka-users/201507.mbox/%3CCAOeJiJh2SMzVn23JsoWiNk3sfsw82Jr_-kRLcNRd-oZ7pR1yWg%40mail.gmail.com%3E Kind regards, Stevo Slavic. On Tue, Sep 15, 2015 at 3:56 PM, Damian Guy

JMX metrices are not updated after deleting topics

2015-09-15 Thread shanthu Venkatesan
Hi all, I have a cluster with 3 brokers. I've created a topic "test" with 3 partitions and replication factor 3. I produced 2 messages to "test-2". Then I checked JMX metrices (LogEndOffset) which showed 2 for "test-2". Now I deleted "test", the logs related to "test" are deleted in both

Re: Jumbled up ISR

2015-09-15 Thread Grant Henke
The first replica in the ISR is the preferred replica, but is not required to be the leader at all times. If you execute a preferred leader election, or enable auto.leader.rebalance.enable, then replica 4 will become the leader again. More can be read here: -

New Consumer & committed offsets

2015-09-15 Thread Damian Guy
Hi, I've been trying out the new consumer and have noticed that i get duplicate messages when i stop the consumer and then restart (different processes, same consumer group). I consume all of the messages on the topic and commit the offsets for each partition and stop the consumer. On the next

Re: Unclean leader election docs outdated

2015-09-15 Thread Stevo Slavić
Created https://issues.apache.org/jira/browse/KAFKA-2551 On Mon, Sep 14, 2015 at 7:22 PM, Guozhang Wang wrote: > Yes you are right. Could you file a JIRA to edit the documents? > > Guozhang > > On Fri, Sep 11, 2015 at 4:41 PM, Stevo Slavić wrote: > > >

Question on Kafka Replication

2015-09-15 Thread Dhyan
Hi All, Below is my partition information for the topic **xx_json_topic** .This is a Kafka cluster with three nodes . All nodes up : Topic: xx_json_topicPartitionCount:4ReplicationFactor:2 Configs: Topic: xx_json_topicPartition: 0Leader: 1