Re: Mirror maker doesn't replicate new topics

2013-09-06 Thread Swapnil Ghike
Hi Rajasekar, You said that ConsumerOffsetChecker shows that new topics are successfully consumed and the lag is 0. If that's the case, can you verify that there is data on the source cluster for these new topics? If there is no data at the source, MirrorMaker will only assign consumer streams to

Re: Sending huge binary files via Kafka?

2013-09-06 Thread Maier, Dr. Andreas
Magnus, this sounds like an interesting idea. But at the actual state of Kafka this would mean, that I would have to extend the Kafka Producer and Consumer classes on my own to support that kind of message/file transfer, wouldn't it? This is a bit too much effort for me at the moment. But of cou

Java junit test for a Kafka producer returns "failed to collate messages by topic"

2013-09-06 Thread Maier, Dr. Andreas
Hello, I wrote a simple junit test to test a Kafka producer. public class KafkaProducerTest { private int brokerId = 0; private String topic = "test"; @Test public void producerTest() throws InterruptedException { // setup Zookeeper String zkConnect = TestZKUtil

Re: Java junit test for a Kafka producer returns "failed to collate messages by topic"

2013-09-06 Thread Joe Stein
The topic maybe is not created at the broker yet ... take a look at ProducerTest.scala as example You could try TestUtils.waitUntilMetadataIsPropagated(servers, topic, 0, 500) to assert that the topic is in fact at the broker before sending after creating it /*

Re: Java junit test for a Kafka producer returns "failed to collate messages by topic"

2013-09-06 Thread Maier, Dr. Andreas
I tried that, but I still got junit.framework.AssertionFailedError: Partition [test,0] metadata not propagated after timeout at kafka.utils.TestUtils$.waitUntilMetadataIsPropagated(TestUtils.scala:506) at kafka.utils.TestUtils.waitUntilMetadataIsPropagated(TestUtils.scala) ... Ho

Re: producer encoder class api

2013-09-06 Thread Jay Kreps
The idea here is that many serializers actually need some configuration properties and without this there is no way to pass these in. We could try to be a little more user friendly by looking for a constructor that takes properties, and, if that doesn't exist looking for a no-arg constructor. If th

Re: producer encoder class api

2013-09-06 Thread Joel Koshy
> public class MyKafkaEncoder implements Encoder { > // This constructor is expected by the kafka producer, used by reflection > * public MyKafkaEncoder(VerifiableProperties props) {* > *// what can I do with this?* > * }* > You don't need to do anything with the argument - the producer co

Re: Sometimes get no message streams in consumer

2013-09-06 Thread Ian Friedman
Sadly it's not easily reproducible, it seems rather random while we're starting large numbers of consumer processes. Out of the 300 or so we restarted during our last release, I saw this happen to 3 of them. And we stagger our restarts in groups of 100. -- Ian Friedman On Thursday, Septe

Re: producer encoder class api

2013-09-06 Thread Joel Koshy
I'll have to try it out, but I think we can just have VerifiableProperties extend from java.util.Properties (so your encoder can just have Properties in its constructor). The producer can internally instantiate VerifiableProperties, pass that in to instantiate the encoder and do verification afterw

producer encoder class api

2013-09-06 Thread Jason Rosenberg
So, it seems that if I want to set a custom serializer class on the producer (in 0.8), I have to use a class that includes a special constructor like: public class MyKafkaEncoder implements Encoder { // This constructor is expected by the kafka producer, used by reflection * public MyKafkaEncod

Re: Kafka-0.8.0-beta1-src Has ObjectName starting with Double Quotes

2013-09-06 Thread Hanish Bansal
Hi Monika, For Kafka-0.8.0 you will have to register beans with JmxTransServer like this: Server kafkaJMXServer = new Server("locahost",""); Query byteInQuery = new Query(); * byteInQuery.setObj("\"kafka.server\":type=\"BrokerTopicMetrics\",name=\"AllTopicsBytesInPerSec\"");

Re: producer encoder class api

2013-09-06 Thread Jason Rosenberg
Filed: https://issues.apache.org/jira/browse/KAFKA-1049 On Fri, Sep 6, 2013 at 2:04 PM, Joel Koshy wrote: > I'll have to try it out, but I think we can just have > VerifiableProperties extend from java.util.Properties (so your encoder > can just have Properties in its constructor). The producer