-
kafka could not be established. Broker may not be availablekafka 2022. 1. 24. 12:26728x90
카프카 스터디 중 다음과 같이 브로커가 동작하지 않는 경우에 브로커를 재 시작하여 해결하였다.
실제 운영하지 않고 있기 때문에 고민없이 재시작하여 해결하였음
[2022-01-24 11:28:29,708] WARN [AdminClient clientId=adminclient-1] Connection to node -1 (localhost/127.0.0.1:9092) could not be established. Broker may not be available. (org.apache.kafka.clients.NetworkClient)
브로커 실행 중단
bin/kafka-server-stop.sh
카프카 브로커 재시작
bin/kafka-server-start.sh -daemon config/server.properties
동작 확인
jps -m 55088 Jps -m 48401 RemoteMavenServer 45473 Launcher /Applications/IntelliJ IDEA.app/Contents/lib/plexus-component-annotations-1.6.jar:/Applications/IntelliJ IDEA.app/Contents/lib/aether-api-1.1.0.jar:/Applications/IntelliJ IDEA.app/Contents/lib/aether-transport-http-1.1.0.jar:/Applications/IntelliJ IDEA.app/Contents/lib/aether-util-1.1.0.jar:/Applications/IntelliJ IDEA.app/Contents/lib/lz4-1.3.0.jar:/Applications/IntelliJ IDEA.app/Contents/lib/httpcore-4.4.10.jar:/Applications/IntelliJ IDEA.app/Contents/lib/guava-25.1-jre.jar:/Applications/IntelliJ IDEA.app/Contents/lib/asm-all-7.0.jar:/Applications/IntelliJ IDEA.app/Contents/lib/util.jar:/Applications/IntelliJ IDEA.app/Contents/lib/platform-api.jar:/Applications/IntelliJ IDEA.app/Contents/lib/plexus-interpolation-1.21.jar:/Applications/IntelliJ IDEA.app/Contents/lib/aether-spi-1.1.0.jar:/Applications/IntelliJ IDEA.app/Contents/lib/protobuf-java-3.4.0.jar:/Applications/IntelliJ IDEA.app/Contents/lib/aether-connector-basic-1.1.0.jar:/Applications/IntelliJ IDEA.app/Contents/lib 55076 Kafka config/server.properties 23450 QuorumPeerMain config/zookeeper.properties 33516 KafkaApplication 45406
728x90'kafka' 카테고리의 다른 글
kafka 기본 사용법 (0) 2022.01.20