kafka manager is a tool from Yahoo Inc. for managing Apache Kafka.
docker run -it --rm -p 9000:9000 -e ZK_HOSTS="192.168.1.14:2181" -e APPLICATION_SECRET=faith huanqingdong/kafka-manager:1.3.3.23
(if you don't define ZK_HOSTS, default value has been set to "localhost:2181")
-
如果你没有zookeeper
zookeeper: image: zookeeper container_name: kafka-manager-zk kafka-manager: image: huanqingdong/kafka-manager:1.3.3.23 container_name: kafka-manager ports: - "9000:9000" links: - zookeeper environment: ZK_HOSTS: zookeeper:2181 KM_USERNAME: admin KM_PASSWORD: admin
-
如果你已有zookeeper
kafka-manager: image: huanqingdong/kafka-manager:1.3.3.23 container_name: kafka-manager ports: - "9000:9000" environment: ZK_HOSTS: 192.168.1.14:2181 KM_USERNAME: admin KM_PASSWORD: admin