Skip to content
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

Support KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR #20

Open
marhoc opened this issue Mar 21, 2019 · 0 comments
Open

Support KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR #20

marhoc opened this issue Mar 21, 2019 · 0 comments

Comments

@marhoc
Copy link

marhoc commented Mar 21, 2019

With the latest release there seems to be no reliable way to change offsets.topic.replication.factor in server.properties of the broker. Also setting the environment variable KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR as part of the container config has no effect. We would like to set the replication factor (default: 3) to 1 in our development environments to avoid having to deploy 3 brokers for each environment.

Strangely neither changing /opt/kafka/bin/server.properties.sh nor adding the setting directly to /opt/kafka/config/server.properties seems to have any effect, since after restating the broker this setting gets dropped somehow from the properties-file again.

The only workaround I found so far is modifying the invocation of kafka-server-sart.sh in /opt/kafka/bin/kafka-service.sh by adding --override offsets.topic.replication.factor=1 to it. This feels like a temporary solution only, though.

Please check if support for this environment variable can be added to the broker-container.

We are currently using Kafka 1.1.0-1.

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

1 participant