Re: Producer RecordMetaData with Offset -1

2015-06-12 Thread Gokulakannan M (Engineering - Data Platform)
Thanks. I thought I was setting acks as 1 but was setting as 0 due to a bug in my code. Works fine now. On Fri, Jun 12, 2015 at 7:17 PM, Gokulakannan M (Engineering - Data Platform) > > Hi, > > What is the value set for acks config property? > If acks=0 then the producer will not wait for any ack

Re: Producer RecordMetaData with Offset -1

2015-06-12 Thread Manikumar Reddy
Hi, What is the value set for acks config property? If acks=0 then the producer will not wait for any acknowledgment from the server and offset given back for each record will always be set to -1. Manikumar On Fri, Jun 12, 2015 at 7:17 PM, Gokulakannan M (Engineering - Data Platform) wrote: >

Producer RecordMetaData with Offset -1

2015-06-12 Thread Gokulakannan M (Engineering - Data Platform)
Hi, I am running a standalone kafka cluster and writing some sample messages using the java client API KafkaProducer. The RecordMetaData I am receiving from server(KafkaProducer send method return value) contains offset -1. Is offset information available only at consumer end and not in producer s