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

Topics are not automatically created when needed #22

Open
objectuser opened this issue Apr 6, 2017 · 4 comments
Open

Topics are not automatically created when needed #22

objectuser opened this issue Apr 6, 2017 · 4 comments

Comments

@objectuser
Copy link
Contributor

They are with Kaffe.Consumer. It seems like something we should add to the group consumer.

@sheshankkodam
Copy link

@objectuser Do we have a solution for this?

@objectuser
Copy link
Contributor Author

@sheshankkodam The approach we've used is to just create the topics prior to usage. This seems to always be what we want in any case.

Would this work in your case?

@sheshankkodam
Copy link

sheshankkodam commented Jun 21, 2019

@objectuser Yes, you're right. The topics are available in production and staging environments and it works fine there.

However, in the test environment, we are using docker and docker-compose to create an environment. In this case, we wanted to create topics dynamically by setting allow_topic_creation=true.

As a workaround, I'm running these 2 commands to create the topics prior to running the application

docker exec kafka kafka-topics --create --topic "topic1"
docker-compose up application_name

This works but it would be nice to run the application in 1 command like docker-compose up

@objectuser
Copy link
Contributor Author

Yes, I do see what you mean.

What we do is have an init script that creates the topics when the Docker container starts. So we still only do docker-compose up but we need to maintain the scripts.

Since we have a different path, this would be pretty low on our priority list, but if you'd like to do a PR, that would be 🥇 worthy.

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

No branches or pull requests

2 participants