Consumer not receiving messages, kafka console, new consumer api, Kafka 0.9

后端 未结 16 1993
一个人的身影
一个人的身影 2021-02-01 02:41

I am doing the Kafka Quickstart for Kafka 0.9.0.0.

I have zookeeper listening at localhost:2181 because I ran

bin/zookeeper-server-start.sh          


        
16条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-02-01 02:46

    I just ran into this issue and the solution was to delete /brokers in zookeeper and restart the kafka nodes.

    bin/zookeeper-shell :2181

    and then

    rmr /brokers

    Not sure why this solves it.

    When I enabled debug logging, I saw this error message over and over again in the consumer:

    2017-07-07 01:20:12 DEBUG AbstractCoordinator:548 - Sending GroupCoordinator request for group test to broker xx.xx.xx.xx:9092 (id: 1007 rack: null) 2017-07-07 01:20:12 DEBUG AbstractCoordinator:559 - Received GroupCoordinator response ClientResponse(receivedTimeMs=1499390412231, latencyMs=84, disconnected=false, requestHeader={api_key=10,api_version=0,correlation_id=13,client_id=consumer-1}, responseBody={error_code=15,coordinator={node_id=-1,host=,port=-1}}) for group test 2017-07-07 01:20:12 DEBUG AbstractCoordinator:581 - Group coordinator lookup for group test failed: The group coordinator is not available. 2017-07-07 01:20:12 DEBUG AbstractCoordinator:215 - Coordinator discovery failed for group test, refreshing metadata

提交回复
热议问题