Dear Genlong,

"New Producer Configs" is for upcoming versions. If you are using 0.8.1,
please refer to "Producer Configs".

acks=n, in which n means number of in-sync replicas, not number of
partitions.

regards,
Chia-Chun

2014-11-10 10:51 GMT+08:00 hi <995174...@qq.com>:

> Dear sir or madam,
>
>     There is one question when I'm using Kafka:
>     From the "documentation:New Producer Configs" ,I get that acks=n means
> the number of acknowledgments the producer requires the leader to have
> received before considering a request complete. But why can the producer
> send messages successfully when I use the  Producer API‍ and  the acks is
> set to 2 (the number of partitions is 3 but there is only one partition‍
> can work)?
>
> Thanks a lot and look forward to hearing from you soon.
>
> Best Regards,
>
> Genlong Wang
> ‍
>
> ‍‍‍

Reply via email to