Re: Fatal issue (was RE: 0.8 throwing exception "Failed to find leader" and high-level consumer fails to make progress_

2013-07-30 Thread Hargett, Phil
No, sorry, it didn't take 90 seconds to connect to ZK (at least I hope not). I had my consumer open for 90 secs in this case before shutting it down and disposing of it—hence any races caused by fast startup/shutdown should not have been relevant. I build from source off of the 0.8 branch, so i

MirrorMaker 0.8-Beta1 implementation issues

2013-07-30 Thread Roel van der Made
Hi al, I'm working on a DC-DC setup with two Kafka 0.8Beta1 setups and want to mirror the messages between two DC's (DC A and DC B) using MirrorMaker. The idea should not be very difficult though I encounter some, for me, unexplainable results and inconsistencies in the available documentation (

high level consumer usage question with auto topic creation

2013-07-30 Thread Garrett Barton
I am trying to write a junit test for working with an embedded Kafka 0.8 server where I send and receive messages just to verify my embedded server, producer and consumer wrappers work. Order of operation in the junit looks something like: -Start zk. [own thread] (wait for init) -Start Kafka [own

Re: Fatal issue (was RE: 0.8 throwing exception "Failed to find leader" and high-level consumer fails to make progress_

2013-07-30 Thread Jun Rao
What's the revision of the 0.8 branch that you used? If that's older than the beta1 release, I recommend that you upgrade. Thanks, Jun On Tue, Jul 30, 2013 at 3:09 AM, Hargett, Phil < phil.harg...@mirror-image.com> wrote: > No, sorry, it didn't take 90 seconds to connect to ZK (at least I hope

Re: Kafka Metrics in 0.8

2013-07-30 Thread Jun Rao
Could you run kafka-list-topics to see whether the leader of those partitions are distributed on both brokers? Thanks, Jun On Mon, Jul 29, 2013 at 10:48 PM, Hanish Bansal < hanish.bansal.agar...@gmail.com> wrote: > Yes, Kafka data shows up in the log dir in kafka-2. We are having 2 > partition

Re: Fatal issue (was RE: 0.8 throwing exception "Failed to find leader" and high-level consumer fails to make progress_

2013-07-30 Thread Hargett, Phil
Oh, we're building from source multiple times per week, either until 0.8 comes out of beta or we ourselves slide towards production. :) Depending on where the builds were done (Dev vs official), we have commits 76d3905 or b1891e7. Both are more recent than beta 1, I believe. :) On Jul 30, 201

Re: MirrorMaker 0.8-Beta1 implementation issues

2013-07-30 Thread Jun Rao
Our mirror maker wiki is not up to date with 0.8. In 0.8, the producer only needs meta.broker.list. Thanks, Jun On Tue, Jul 30, 2013 at 5:23 AM, Roel van der Made wrote: > Hi al, > > I'm working on a DC-DC setup with two Kafka 0.8Beta1 setups and want to > mirror the messages between two DC'

RE: Leader not local for partition error?

2013-07-30 Thread Maxime Petazzoni
Nope, that's on a pretty standard GNU/Linux Debian system (jessie/sid) running a 3.9.8-1 kernel. But you were onto something. Removing the trailing slash is my log.dir config value made it work. I'm not sure why this would have an impact since the log directories seem to be correctly parsed as

Re: Fatal issue (was RE: 0.8 throwing exception "Failed to find leader" and high-level consumer fails to make progress_

2013-07-30 Thread Hargett, Phil
Hmmm...is there a reason that stopConnections in ConsumerFetcherManager does not grab a lock before shutting down the leaderFinderThread? I don't see what prevents startConnections/stopConnections from causing a race in certain conditions and if called on separate threads. Given there are no lo

Re: high level consumer usage question with auto topic creation

2013-07-30 Thread Jason Rosenberg
One thing is that you need to make sure the consumer starts consuming from the beginning of the topic, otherwise by default, it will start from the latest message in the topic, from the time it starts up. Since the consumer and producer are asynchronous, it's hard to assert that the consumer is co

how to downgrade the metrics jar from 3.x to 2.2.0

2013-07-30 Thread Nandigam, Sujitha
Hi, I am running kafka-0.7 but when running producer got error java.lang.NoSuchMethodError: com.yammer.metrics.core.TimerContext.stop()J. So I want to downgrade it to metrics 2.2.0 jar, So I replaced 3.x jars with 2.2.0 jars then I am unable to build the jar file getting below errors /kafka-0.

Re: Leader not local for partition error?

2013-07-30 Thread Jun Rao
This is because we populate the key in ReplicaManager.highWatermarkCheckpoints using the "dirs" config, but look up the key using log.dir.getParent. So, if you have a trailing slash in the config, they won't match. This seems a bug that we should fix. Could you file a jira? Thanks, Jun On Tue,

Re: Fatal issue (was RE: 0.8 throwing exception "Failed to find leader" and high-level consumer fails to make progress_

2013-07-30 Thread Jun Rao
Hmm, that's a good theory. My understanding is that you have one thread that first shuts down the consumer connector and then creates new streams on the same connector. Is that right? If so, I don't think the race condition can happen. When we shutdown the consumer connector, it waits until the lea

Re: how to downgrade the metrics jar from 3.x to 2.2.0

2013-07-30 Thread Jun Rao
Hmm, are you sure this is Kafka 0.7? Kafka 0.7 doesn't use yammer metrics core. Only 0.8 does. Thanks, Jun On Tue, Jul 30, 2013 at 2:20 PM, Nandigam, Sujitha wrote: > Hi, > > I am running kafka-0.7 but when running producer got error > java.lang.NoSuchMethodError: com.yammer.metrics.core.Timer