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

Start script to get Kafka broker addresses does not work in 1.12 #18

Open
ericgoode opened this issue Mar 19, 2019 · 0 comments
Open

Start script to get Kafka broker addresses does not work in 1.12 #18

ericgoode opened this issue Mar 19, 2019 · 0 comments

Comments

@ericgoode
Copy link

Using DC/OS 1.12 the script "export TWEET_CONSUMER_KAFKA_BROKERS=curl -s master.mesos:8123/v1/services/_broker-0._tcp.kafka.mesos | python -c 'import sys, json; j = json.load(sys.stdin); print(j[0]["ip"] + ":" + j[0]["port"])'" does not return any result. My work around was to place the following environment variable for each of the apps.

TWEET_CONSUMER_KAFKA_BROKERS=kafka-0-broker.kafka.autoip.dcos.thisdcos.directory:1025,kafka-1-broker.kafka.autoip.dcos.thisdcos.directory:1025,kafka-2-broker.kafka.autoip.dcos.thisdcos.directory:1025

And

TWEET_PRODUCER_KAFKA_BROKERS=kafka-0-broker.kafka.autoip.dcos.thisdcos.directory:1025,kafka-1-broker.kafka.autoip.dcos.thisdcos.directory:1025,kafka-2-broker.kafka.autoip.dcos.thisdcos.directory:1025

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