ERROR Invalid config, exiting abnormally (org.apache.zookeeper.server.quorum.QuorumPeerMain)org.apache.zookeeper.server.quorum.QuorumPeerConfig$ConfigException: 2181 does not have the form server_config or server_config;client_config where server_config i

2025. 2. 28. 14:31k8s/Kafka

ZOOKEEPER_SERVERS의 설정이 형식에 어긋나서 발생함

# 변경전
  ZOOKEEPER_SERVERS: |
    server.1=zookeeper-0.zookeeper-headless.kafka:2888:3888;2181
    server.2=zookeeper-1.zookeeper-headless.kafka:2888:3888;2181
    server.3=zookeeper-2.zookeeper-headless.kafka:2888:3888;2181

# 변경후
    server.1=zookeeper-0.zookeeper-headless.kafka:2888:3888
    server.2=zookeeper-1.zookeeper-headless.kafka:2888:3888
    server.3=zookeeper-2.zookeeper-headless.kafka:2888:3888