apache-zookeeper

How change topic leader or remove partition after some broker down?

与世无争的帅哥 提交于 2021-01-27 07:03:14
问题 We have kafka cluster with 4 brokers and some topics with replica factor 1 and 10 partitions. At one moment 2 of 4 our servers with kafka cluster - fail. So now we have 2 brokers with same topics. When i m run command ./kafka_topics.sh --zookeeper localhost:2181 --describe i m get this: Topic:outcoming-notification-error-topic PartitionCount:10 ReplicationFactor:1 Configs: Topic: outcoming-error-topic Partition: 0 Leader: 2 Replicas: 2 Isr: 2 Topic: outcoming-error-topic Partition: 1 Leader:

My kafka docker container cannot connect to my zookeeper docker container

ⅰ亾dé卋堺 提交于 2021-01-21 08:38:07
问题 I want to use both confluent/kafka and confluent/zookeeper and run them on a single Ubuntu server. I'm using the following configurations: docker run -e ZOOKEEPER_CLIENT_PORT=2181 --name zookeeper confluent/zookeeper docker run --name kafka -e KAFKA_ADVERTISED_HOST_NAME=kafka -e KAFKA_ZOOKEEPER_CONNECT=zookeeper:2181 -e KAFKA_CREATE_TOPICS=testtopic:1:1 confluent/kafka However this results in: Unable to connect to zookeeper:2181 I have other containers that I'd like to connect to, how can I

debezium/zookeeper port 2181 closed

心不动则不痛 提交于 2021-01-01 07:00:06
问题 I have a running Zookeeper instance from the https://hub.docker.com/r/debezium/zookeeper:1.2 image and my Compose file: version: "3.7" services: zookeeper: image: debezium/zookeeper:1.2 ports: - "2181:2181" - "2888:2888" - "3888:3888" networks: common: volumes: - "~/dev/docker/projects/debezium/volumes/zookeeper/data:/zookeeper/data" - "~/dev/docker/projects/debezium/volumes/zookeeper/txns:/zookeeper/txns" - "~/dev/docker/projects/debezium/volumes/zookeeper/conf:/zookeeper/conf" - "~/dev