我想按照文档中的规定使用docker启动Confluence控制中心:
https://docs.confluence.io/platform/current/quickstart/ce-docker-quickstart.html
这是docker-compose.yaml
他们提供的文件;
---
version: '2'
services:
zookeeper:
image: confluentinc/cp-zookeeper:5.5.0
hostname: zookeeper
container_name: zookeeper
ports:
- "2181:2181"
environment:
ZOOKEEPER_CLIENT_PORT: 2181
ZOOKEEPER_TICK_TIME: 2000
broker:
image: confluentinc/cp-server:5.5.0
hostname: broker
container_name: broker
depends_on:
- zookeeper
ports:
- "9092:9092"
environment:
KAFKA_BROKER_ID: 1
KAFKA_ZOOKEEPER_CONNECT: 'zookeeper:2181'
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://broker:29092,PLAINTEXT_HOST://localhost:9092
KAFKA_METRIC_REPORTERS: io.confluent.metrics.reporter.ConfluentMetricsReporter
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
KAFKA_GROUP_INITIAL_REBALANCE_DELAY_MS: 0
KAFKA_CONFLUENT_LICENSE_TOPIC_REPLICATION_FACTOR: 1
KAFKA_TRANSACTION_STATE_LOG_MIN_ISR: 1
KAFKA_TRANSACTION_STATE_LOG_REPLICATION_FACTOR: 1
CONFLUENT_METRICS_REPORTER_BOOTSTRAP_SERVERS: broker:29092
CONFLUENT_METRICS_REPORTER_ZOOKEEPER_CONNECT: zookeeper:2181
CONFLUENT_METRICS_REPORTER_TOPIC_REPLICAS: 1
CONFLUENT_METRICS_ENABLE: 'true'
CONFLUENT_SUPPORT_CUSTOMER_ID: 'anonymous'
schema-registry:
image: confluentinc/cp-schema-registry:5.5.0
hostname: schema-registry
container_name: schema-registry
depends_on:
- zookeeper
- broker …
Run Code Online (Sandbox Code Playgroud) apache-kafka docker confluent-control-center confluent-platform apple-m1
Confluence 控制中心未启动。
我执行了以下命令来启动 Confluence 平台
模式注册表启动(终端 3)
然后我尝试启动控制中心(4 号航站楼)。但出现错误。它没有开始。
[2019-10-30 08:58:36,331] INFO [main] unable to get command store (io.confluent.command.CommandStore)
[2019-10-30 08:58:37,331] INFO [main] unable to get command store (io.confluent.command.CommandStore)
[2019-10-30 08:58:37,331] WARN [main] unable to start with allowance=300000 (io.confluent.command.CommandStore)
[2019-10-30 08:58:37,332] ERROR [main] failed to start topology (io.confluent.controlcenter.ControlCenter)
java.util.concurrent.TimeoutException
at io.confluent.command.CommandStore.start(CommandStore.java:108)
at io.confluent.controlcenter.ControlCenter.main(ControlCenter.java:124)
Run Code Online (Sandbox Code Playgroud) 出于开发目的,我想为我的单一经纪人 kafka 设置控制中心,但由于异常而失败。我将我的配置和控制中心输出日志详细信息放在这里。有人可以帮忙提供建议吗?
[2020-04-04 11:27:55,883] ERROR [main] 3 brokers are required but only found 1. Check the topic replication settings in the properties file or add more brokers to your cluster (io.confluent.controlcenter.KafkaHelper)
Run Code Online (Sandbox Code Playgroud)