diff --git a/kafka/cluster/docker-compose-kafka1.yml b/kafka/cluster/docker-compose-kafka1.yml index 95e4a0f..8addcb4 100644 --- a/kafka/cluster/docker-compose-kafka1.yml +++ b/kafka/cluster/docker-compose-kafka1.yml @@ -1,5 +1,5 @@ kafka: - image: wurstmeister/kafka:2.12-2.2.1 + image: wurstmeister/kafka:2.12-2.3.0 ports: - "9092:9092" - "9999:9999" diff --git a/kafka/cluster/docker-compose-zookeeper1.yml b/kafka/cluster/docker-compose-zookeeper1.yml index 88e6856..991619f 100644 --- a/kafka/cluster/docker-compose-zookeeper1.yml +++ b/kafka/cluster/docker-compose-zookeeper1.yml @@ -1,5 +1,5 @@ zookeeper: - image: zookeeper:3.5.5 + image: zookeeper:3.5.6 ports: - "2181:2181" - "2888:2888" @@ -11,8 +11,10 @@ zookeeper: - /data/zookeeper/logs:/logs environment: - ZOO_MY_ID=1 - - ZOO_SERVERS=server.1=0.0.0.0:2888:3888;2181 server.2=zookeeper2:2888:3888;2181 server.3=zookeeper3:2888:3888;2181 + - ZOO_SERVERS=quorumListenOnAllIPs=true server.1=zookeeper1:2888:3888;2181 server.2=zookeeper2:2888:3888;2181 server.3=zookeeper3:2888:3888;2181 - ZOO_LOG4J_PROP=INFO,ROLLINGFILE + - ZOO_4LW_COMMANDS_WHITELIST=* + - ZOO_STANDALONE_ENABLED=false extra_hosts: - zookeeper1:10.0.0.21 - zookeeper2:10.0.0.22 diff --git a/zookeeper/README.md b/zookeeper/README.md index 9fed9cf..02371e2 100644 --- a/zookeeper/README.md +++ b/zookeeper/README.md @@ -20,6 +20,7 @@ zookeeper: - ./data/logs:/logs environment: - ZOO_LOG4J_PROP=INFO,ROLLINGFILE + - ZOO_STANDALONE_ENABLED=true restart: always ``` @@ -28,6 +29,8 @@ zookeeper: ```bash $ docker-compose up -d +$ docker-compose exec zookeeper cat /conf/zoo.cfg + $ docker-compose exec zookeeper zkServer.sh status ZooKeeper JMX enabled by default Using config: /conf/zoo.cfg diff --git a/zookeeper/docker-compose.yml b/zookeeper/docker-compose.yml index 00fc89c..0e3de99 100644 --- a/zookeeper/docker-compose.yml +++ b/zookeeper/docker-compose.yml @@ -8,4 +8,5 @@ zookeeper: - ./data/logs:/logs environment: - ZOO_LOG4J_PROP=INFO,ROLLINGFILE + - ZOO_STANDALONE_ENABLED=true restart: always