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  acknowledgment from the
> server and
> offset given back for each record will always be set to -1.
>
> Manikumar
>
> <gokulakanna...@flipkart.com> wrote:
    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 side
> yet? Or am I missing something?
>

> I am using kafka version 0.8.2.0
>

>
> --
>
>


--

-- 


------------------------------------------------------------------------------------------------------------------------------------------

This email and any files transmitted with it are confidential and intended 
solely for the use of the individual or entity to whom they are addressed. 
If you have received this email in error please notify the system manager. 
This message contains confidential information and is intended only for the 
individual named. If you are not the named addressee you should not 
disseminate, distribute or copy this e-mail. Please notify the sender 
immediately by e-mail if you have received this e-mail by mistake and 
delete this e-mail from your system. If you are not the intended recipient 
you are notified that disclosing, copying, distributing or taking any 
action in reliance on the contents of this information is strictly 
prohibited. Although Flipkart has taken reasonable precautions to ensure no 
viruses are present in this email, the company cannot accept responsibility 
for any loss or damage arising from the use of this email or attachments

Reply via email to