Error code 모음/2. Hadoop errors
[Kafka Error] kafka.common.InconsistentClusterIdException: The Cluster ID doesn't match stored clusterId Some in meta.properties. The broker is trying to join the wrong cluster. Configured zookeeper.connect may be wrong. - 카프카 실행 에러
쟈누
2021. 6. 30. 00:44
반응형
1. 에러 원인
카프카가 실패한 cluster ID 를 meta.properties 에 저장을 해서 일어나는 에러인 것 같다. 카프카 구동시 meta 데이터를 참조하는데, 이때 실패한 cluster ID 가 있으면 그것을 참조하여 카프카가 실행에 실패하는 것 같다..
(이것때문에 2시간 가까이 날림...)
2. 해결 방법
1) meta.properties 파일을 찾는다.
해당 파일은 config/server.properties 파일에서 Log Basics 부분의
log.dir 경로를 찾는다
2) 그다음 해당 경로를 찾아가서 meta.properties 파일을 삭제한다
$ cd <log-dir>
$ rm -rf meta.properties
3) 그리고 다시 kafka를 시작하는 명령어로 kafka를 다시 실행시켜 준다.
$ systemctl restart kafka-server
3. 참고링크
Unable to start kafka with zookeeper (kafka.common.InconsistentClusterIdException)
Below the steps I did to get this issue : Launch ZooKeeper Launch Kafka : .\bin\windows\kafka-server-start.bat .\config\server.properties And at the second step the error happens : ERROR Fatal
stackoverflow.com
반응형