Skip to content

producer config property 'acks' is not passed through #48

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
blbradley opened this issue Sep 29, 2016 · 2 comments
Closed

producer config property 'acks' is not passed through #48

blbradley opened this issue Sep 29, 2016 · 2 comments

Comments

@blbradley
Copy link

Using Confluent 3.0.1 on Debian:

Traceback (most recent call last):
  File "./main.py", line 22, in <module>
    producer = Producer({'bootstrap.servers': bootstrap_servers, 'api.version.request': 'true', 'request.required.acks': -1})
cimpl.KafkaException: KafkaError{code=_INVALID_ARG,val=-186,str="No such configuration property: "request.required.acks""}

All combinations with the above settings, short version acks, and '-1' has the same effect.

@edenhill
Copy link
Contributor

acks (request.required.acks) is a topic-level configuration property so you will need to set it in the default.topic.conf sub-dict, like so:

conf = {'bootstrap.servers': broker,  'default.topic.config': {'acks': 'all'}}

@blbradley
Copy link
Author

That worked. Thanks for the quick response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants