Open andrewterra opened 7 years ago
TOPICS env is for spotify/kafkaproxy image.
kafka:
image: spotify/kafka
ports:
- "2181:2181"
- "9092:9092"
hostname: kafka
container_name: kafka
environment:
- "ADVERTISED_HOST=kafka"
- "ADVERTISED_PORT=9092"
- "AUTO_CREATE_TOPICS=true"
command: >
bash -c
"(sleep 15s &&
/opt/kafka_2.11-0.10.1.0/bin/kafka-topics.sh
--create
--zookeeper
localhost:2181 --replication-factor 1 --partitions 1
--topic dummy_topic &) && (supervisord -n)"
@terrabl, you can do it like this.
Hi there, I have a question. How can I create producer and consumer in "command" section like this topic was created?
Hi there, I have a question. How can I create producer and consumer in "command" section like this topic was created? Refer below link: https://gist.github.com/abacaphiliac/f0553548f9c577214d16290c2e751071
AUTO_CREATE_TOPICS
Is this variable really needed? I've managed to get my topic created even without this variable. Could you please explain reason why we need it?
I did a NuGet package update and that solved my issue
I attempted to put
But this failed to work, is there something that I'm missing? (I tried with quotes around the topic as well)
Also, if anyone has had any luck using Spring to connect to a topic, I would greatly appreciate some help connecting to the topics.