Cloudera CDH/CDP 및 Hadoop EcoSystem, Semantic IoT등의 개발/운영 기술을 정리합니다. gooper@gooper.com로 문의 주세요.
아래와 같이 meta.properties파일에 있는 brokerId가 실행시 사용된 config파일과 달라서 기동에 실패하는 경우는
logs파일 위치(예, "/logs/kafka/kafka-logs/meta.properties")에 있는 meta.properties파일을 열어서 broker.id를 수정하고 저장한다.
--------------------------------------------------------오류내용----------------------------------
[2016-05-02 15:32:06,302] FATAL Fatal error during KafkaServer startup. Prepare to shutdown (kafka.server.KafkaServer)
kafka.common.InconsistentBrokerIdException: Configured brokerId 2 doesn't match stored brokerId 1 in meta.properties
at kafka.server.KafkaServer.getBrokerId(KafkaServer.scala:630)
at kafka.server.KafkaServer.startup(KafkaServer.scala:175)
at kafka.server.KafkaServerStartable.startup(KafkaServerStartable.scala:37)
at kafka.Kafka$.main(Kafka.scala:67)
at kafka.Kafka.main(Kafka.scala)
[2016-05-02 15:32:06,303] INFO shutting down (kafka.server.KafkaServer)
[2016-05-02 15:32:06,305] INFO Shutting down. (kafka.log.LogManager)
[2016-05-02 15:32:06,310] INFO Shutdown complete. (kafka.log.LogManager)
[2016-05-02 15:32:06,310] INFO Terminate ZkClient event thread. (org.I0Itec.zkclient.ZkEventThread)
[2016-05-02 15:32:06,312] INFO Session: 0x15432cb047e0058 closed (org.apache.zookeeper.ZooKeeper)
[2016-05-02 15:32:06,312] INFO EventThread shut down (org.apache.zookeeper.ClientCnxn)
[2016-05-02 15:32:06,313] INFO shut down completed (kafka.server.KafkaServer)
[2016-05-02 15:32:06,313] FATAL Fatal error during KafkaServerStartable startup. Prepare to shutdown (kafka.server.KafkaServerStartable)
kafka.common.InconsistentBrokerIdException: Configured brokerId 2 doesn't match stored brokerId 1 in meta.properties
at kafka.server.KafkaServer.getBrokerId(KafkaServer.scala:630)
at kafka.server.KafkaServer.startup(KafkaServer.scala:175)
at kafka.server.KafkaServerStartable.startup(KafkaServerStartable.scala:37)
at kafka.Kafka$.main(Kafka.scala:67)
at kafka.Kafka.main(Kafka.scala)
[2016-05-02 15:32:06,314] INFO shutting down (kafka.server.KafkaServer)