confluentinc / cp-docker-images

[DEPRECATED] Docker images for Confluent Platform.
Apache License 2.0
1.14k stars 703 forks source link

cp-kafka-rest #291

Open ayyasamr opened 7 years ago

ayyasamr commented 7 years ago

Just used docker image cp-kafka-rest, immediately i get see Command [/usr/local/bin/dub ensure KAFKA_REST_ZOOKEEPER_CONNECT] FAILED.. capture

miguno commented 7 years ago

The last line in the output describes the problem.

KAFKA_REST_ZOOKEEPER_CONNECT is required.

You must set the variable KAFKA_REST_ZOOKEEPER_CONNECT when/before starting the container so that the Kafka REST proxy knows where to find ZooKeeper. The value of this setting/variable depends on your environment (perhaps you are launching ZK through a container, too?), here's a general example: KAFKA_REST_ZOOKEEPER_CONNECT=zookeeper1:2181.