项目要开始了,我赶紧运行下我之前写的代码,发现运行不了了,一直报错如下:
[ForkJoinPool-1-worker-5] INFO org.apache.kafka.common.utils.AppInfoParser - Kafka version : 0.10.0.0
[ForkJoinPool-1-worker-5] INFO org.apache.kafka.common.utils.AppInfoParser - Kafka commitId : b8642491e78c5a13
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.clients.consumer.KafkaConsumer - Kafka consumer created
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.clients.consumer.KafkaConsumer - Subscribed to topic(s): test2
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.clients.consumer.internals.AbstractCoordinator - Sending coordinator request for group group3 to broker 10.12.2.105:9092 (id: -2 rack: null)
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.clients.NetworkClient - Initiating connection to node -2 at 10.12.2.105:9092.
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.common.metrics.Metrics - Added sensor with name node--2.bytes-sent
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.common.metrics.Metrics - Added sensor with name node--2.bytes-received
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.common.metrics.Metrics - Added sensor with name node--2.latency
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.clients.NetworkClient - Completed connection to node -2
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.clients.NetworkClient - Sending metadata request {topics=[test2]} to node -2
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.clients.Metadata - Updated cluster metadata version 2 to Cluster(nodes = [kafka-2:9092 (id: 406 rack: null), kafka-1:9092 (id: 404 rack: null), kafka-3:9092 (id: 405 rack: null)], partitions = [Partition(topic = test2, partition = 0, leader = 406, replicas = [406,], isr = [406,]])
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.clients.consumer.internals.AbstractCoordinator - Received group coordinator response ClientResponse(receivedTimeMs=1507773358730, disconnected=false, request=ClientRequest(expectResponse=true, callback=org.apache.kafka.clients.consumer.internals.ConsumerNetworkClient$RequestFutureCompletionHandler@1073a0d, request=RequestSend(header={api_key=10,api_version=0,correlation_id=0,client_id=consumer-1}, body={group_id=group3}), createdTimeMs=1507773358608, sendTimeMs=1507773358713), responseBody={error_code=15,coordinator={node_id=-1,host=,port=-1}})
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.clients.NetworkClient - Initialize connection to node 405 for sending metadata request
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.clients.NetworkClient - Initiating connection to node 405 at kafka-3:9092.
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.clients.NetworkClient - Initialize connection to node 406 for sending metadata request
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.clients.NetworkClient - Initiating connection to node 406 at kafka-2:9092.
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.common.metrics.Metrics - Added sensor with name node-405.bytes-sent
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.common.metrics.Metrics - Added sensor with name node-405.bytes-received
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.common.metrics.Metrics - Added sensor with name node-405.latency
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.clients.NetworkClient - Completed connection to node 405
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.clients.NetworkClient - Sending metadata request {topics=[test2]} to node 405
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.common.metrics.Metrics - Added sensor with name node-406.bytes-sent
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.common.metrics.Metrics - Added sensor with name node-406.bytes-received
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.common.metrics.Metrics - Added sensor with name node-406.latency
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.clients.NetworkClient - Completed connection to node 406
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.clients.Metadata - Updated cluster metadata version 3 to Cluster(nodes = [kafka-3:9092 (id: 405 rack: null), kafka-1:9092 (id: 404 rack: null), kafka-2:9092 (id: 406 rack: null)], partitions = [Partition(topic = test2, partition = 0, leader = 406, replicas = [406,], isr = [406,]])
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.clients.consumer.internals.AbstractCoordinator - Sending coordinator request for group group3 to broker kafka-2:9092 (id: 406 rack: null)
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.clients.consumer.internals.AbstractCoordinator - Received group coordinator response ClientResponse(receivedTimeMs=1507773358838, disconnected=false, request=ClientRequest(expectResponse=true, callback=org.apache.kafka.clients.consumer.internals.ConsumerNetworkClient$RequestFutureCompletionHandler@6ba0211f, request=RequestSend(header={api_key=10,api_version=0,correlation_id=3,client_id=consumer-1}, body={group_id=group3}), createdTimeMs=1507773358834, sendTimeMs=1507773358834), responseBody={error_code=15,coordinator={node_id=-1,host=,port=-1}})
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.clients.NetworkClient - Sending metadata request {topics=[test2]} to node 405
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.clients.Metadata - Updated cluster metadata version 4 to Cluster(nodes = [kafka-1:9092 (id: 404 rack: null), kafka-3:9092 (id: 405 rack: null), kafka-2:9092 (id: 406 rack: null)], partitions = [Partition(topic = test2, partition = 0, leader = 406, replicas = [406,], isr = [406,]])
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.clients.consumer.internals.AbstractCoordinator - Sending coordinator request for group group3 to broker kafka-3:9092 (id: 405 rack: null)
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.clients.consumer.internals.AbstractCoordinator - Received group coordinator response ClientResponse(receivedTimeMs=1507773358940, disconnected=false, request=ClientRequest(expectResponse=true, callback=org.apache.kafka.clients.consumer.internals.ConsumerNetworkClient$RequestFutureCompletionHandler@3041b2a3, request=RequestSend(header={api_key=10,api_version=0,correlation_id=5,client_id=consumer-1}, body={group_id=group3}), createdTimeMs=1507773358937, sendTimeMs=1507773358937), responseBody={error_code=15,coordinator={node_id=-1,host=,port=-1}})
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.clients.NetworkClient - Sending metadata request {topics=[test2]} to node 405
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.clients.Metadata - Updated cluster metadata version 5 to Cluster(nodes = [kafka-3:9092 (id: 405 rack: null), kafka-1:9092 (id: 404 rack: null), kafka-2:9092 (id: 406 rack: null)], partitions = [Partition(topic = test2, partition = 0, leader = 406, replicas = [406,], isr = [406,]])
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.clients.consumer.internals.AbstractCoordinator - Sending coordinator request for group group3 to broker kafka-2:9092 (id: 406 rack: null)
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.clients.consumer.internals.AbstractCoordinator - Received group coordinator response ClientResponse(receivedTimeMs=1507773359044, disconnected=false, request=ClientRequest(expectResponse=true, callback=org.apache.kafka.clients.consumer.internals.ConsumerNetworkClient$RequestFutureCompletionHandler@44471d19, request=RequestSend(header={api_key=10,api_version=0,correlation_id=7,client_id=consumer-1}, body={group_id=group3}), createdTimeMs=1507773359040, sendTimeMs=1507773359041), responseBody={error_code=15,coordinator={node_id=-1,host=,port=-1}})
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.clients.NetworkClient - Sending metadata request {topics=[test2]} to node 406
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.clients.Metadata - Updated cluster metadata version 6 to Cluster(nodes = [kafka-3:9092 (id: 405 rack: null), kafka-2:9092 (id: 406 rack: null), kafka-1:9092 (id: 404 rack: null)], partitions = [Partition(topic = test2, partition = 0, leader = 406, replicas = [406,], isr = [406,]])
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.clients.consumer.internals.AbstractCoordinator - Sending coordinator request for group group3 to broker kafka-2:9092 (id: 406 rack: null)
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.clients.consumer.internals.AbstractCoordinator - Received group coordinator response ClientResponse(receivedTimeMs=1507773359147, disconnected=false, request=ClientRequest(expectResponse=true, callback=org.apache.kafka.clients.consumer.internals.ConsumerNetworkClient$RequestFutureCompletionHandler@3c448e6f, request=RequestSend(header={api_key=10,api_version=0,correlation_id=9,client_id=consumer-1}, body={group_id=group3}), createdTimeMs=1507773359144, sendTimeMs=1507773359144), responseBody={error_code=15,coordinator={node_id=-1,host=,port=-1}})
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.clients.NetworkClient - Sending metadata request {topics=[test2]} to node 405
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.clients.Metadata - Updated cluster metadata version 7 to Cluster(nodes = [kafka-2:9092 (id: 406 rack: null), kafka-1:9092 (id: 404 rack: null), kafka-3:9092 (id: 405 rack: null)], partitions = [Partition(topic = test2, partition = 0, leader = 406, replicas = [406,], isr = [406,]])
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.clients.consumer.internals.AbstractCoordinator - Sending coordinator request for group group3 to broker kafka-3:9092 (id: 405 rack: null)
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.clients.consumer.internals.AbstractCoordinator - Received group coordinator response ClientResponse(receivedTimeMs=1507773359253, disconnected=false, request=ClientRequest(expectResponse=true, callback=org.apache.kafka.clients.consumer.internals.ConsumerNetworkClient$RequestFutureCompletionHandler@5606e821, request=RequestSend(header={api_key=10,api_version=0,correlation_id=11,client_id=consumer-1}, body={group_id=group3}), createdTimeMs=1507773359250, sendTimeMs=1507773359250), responseBody={error_code=15,coordinator={node_id=-1,host=,port=-1}})
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.clients.NetworkClient - Sending metadata request {topics=[test2]} to node 406
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.clients.Metadata - Updated cluster metadata version 8 to Cluster(nodes = [kafka-1:9092 (id: 404 rack: null), kafka-2:9092 (id: 406 rack: null), kafka-3:9092 (id: 405 rack: null)], partitions = [Partition(topic = test2, partition = 0, leader = 406, replicas = [406,], isr = [406,]])
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.clients.consumer.internals.AbstractCoordinator - Sending coordinator request for group group3 to broker kafka-2:9092 (id: 406 rack: null)
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.clients.consumer.internals.AbstractCoordinator - Received group coordinator response ClientResponse(receivedTimeMs=1507773359356, disconnected=false, request=ClientRequest(expectResponse=true, callback=org.apache.kafka.clients.consumer.internals.ConsumerNetworkClient$RequestFutureCompletionHandler@6b6f9ce8, request=RequestSend(header={api_key=10,api_version=0,correlation_id=13,client_id=consumer-1}, body={group_id=group3}), createdTimeMs=1507773359353, sendTimeMs=1507773359353), responseBody={error_code=15,coordinator={node_id=-1,host=,port=-1}})
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.clients.NetworkClient - Sending metadata request {topics=[test2]} to node 406
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.clients.Metadata - Updated cluster metadata version 9 to Cluster(nodes = [kafka-1:9092 (id: 404 rack: null), kafka-3:9092 (id: 405 rack: null), kafka-2:9092 (id: 406 rack: null)], partitions = [Partition(topic = test2, partition = 0, leader = 406, replicas = [406,], isr = [406,]])
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.clients.consumer.internals.AbstractCoordinator - Sending coordinator request for group group3 to broker kafka-3:9092 (id: 405 rack: null)
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.clients.consumer.internals.AbstractCoordinator - Received group coordinator response ClientResponse(receivedTimeMs=1507773359461, disconnected=false, request=ClientRequest(expectResponse=true, callback=org.apache.kafka.clients.consumer.internals.ConsumerNetworkClient$RequestFutureCompletionHandler@17bcfb49, request=RequestSend(header={api_key=10,api_version=0,correlation_id=15,client_id=consumer-1}, body={group_id=group3}), createdTimeMs=1507773359457, sendTimeMs=1507773359457), responseBody={error_code=15,coordinator={node_id=-1,host=,port=-1}})
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.clients.NetworkClient - Sending metadata request {topics=[test2]} to node 406
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.clients.Metadata - Updated cluster metadata version 10 to Cluster(nodes = [kafka-2:9092 (id: 406 rack: null), kafka-3:9092 (id: 405 rack: null), kafka-1:9092 (id: 404 rack: null)], partitions = [Partition(topic = test2, partition = 0, leader = 406, replicas = [406,], isr = [406,]])
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.clients.consumer.internals.AbstractCoordinator - Sending coordinator request for group group3 to broker kafka-3:9092 (id: 405 rack: null)
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.clients.consumer.internals.AbstractCoordinator - Received group coordinator response ClientResponse(receivedTimeMs=1507773359566, disconnected=false, request=ClientRequest(expectResponse=true, callback=org.apache.kafka.clients.consumer.internals.ConsumerNetworkClient$RequestFutureCompletionHandler@f132827, request=RequestSend(header={api_key=10,api_version=0,correlation_id=17,client_id=consumer-1}, body={group_id=group3}), createdTimeMs=1507773359561, sendTimeMs=1507773359561), responseBody={error_code=15,coordinator={node_id=-1,host=,port=-1}})
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.clients.NetworkClient - Sending metadata request {topics=[test2]} to node 406
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.clients.Metadata - Updated cluster metadata version 11 to Cluster(nodes = [kafka-1:9092 (id: 404 rack: null), kafka-3:9092 (id: 405 rack: null), kafka-2:9092 (id: 406 rack: null)], partitions = [Partition(topic = test2, partition = 0, leader = 406, replicas = [406,], isr = [406,]])
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.clients.consumer.internals.AbstractCoordinator - Sending coordinator request for group group3 to broker kafka-2:9092 (id: 406 rack: null)
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.clients.consumer.internals.AbstractCoordinator - Received group coordinator response ClientResponse(receivedTimeMs=1507773359668, disconnected=false, request=ClientRequest(expectResponse=true, callback=org.apache.kafka.clients.consumer.internals.ConsumerNetworkClient$RequestFutureCompletionHandler@6e358e04, request=RequestSend(header={api_key=10,api_version=0,correlation_id=19,client_id=consumer-1}, body={group_id=group3}), createdTimeMs=1507773359664, sendTimeMs=1507773359665), responseBody={error_code=15,coordinator={node_id=-1,host=,port=-1}})
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.clients.NetworkClient - Sending metadata request {topics=[test2]} to node 405
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.clients.Metadata - Updated cluster metadata version 12 to Cluster(nodes = [kafka-3:9092 (id: 405 rack: null), kafka-1:9092 (id: 404 rack: null), kafka-2:9092 (id: 406 rack: null)], partitions = [Partition(topic = test2, partition = 0, leader = 406, replicas = [406,], isr = [406,]])
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.clients.consumer.internals.AbstractCoordinator - Sending coordinator request for group group3 to broker kafka-2:9092 (id: 406 rack: null)
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.clients.consumer.internals.AbstractCoordinator - Received group coordinator response ClientResponse(receivedTimeMs=1507773359774, disconnected=false, request=ClientRequest(expectResponse=true, callback=org.apache.kafka.clients.consumer.internals.ConsumerNetworkClient$RequestFutureCompletionHandler@792ad7f6, request=RequestSend(header={api_key=10,api_version=0,correlation_id=21,client_id=consumer-1}, body={group_id=group3}), createdTimeMs=1507773359770, sendTimeMs=1507773359770), responseBody={error_code=15,coordinator={node_id=-1,host=,port=-1}})
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.clients.NetworkClient - Sending metadata request {topics=[test2]} to node 405
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.clients.Metadata - Updated cluster metadata version 13 to Cluster(nodes = [kafka-2:9092 (id: 406 rack: null), kafka-3:9092 (id: 405 rack: null), kafka-1:9092 (id: 404 rack: null)], partitions = [Partition(topic = test2, partition = 0, leader = 406, replicas = [406,], isr = [406,]])
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.clients.consumer.internals.AbstractCoordinator - Sending coordinator request for group group3 to broker kafka-2:9092 (id: 406 rack: null)
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.clients.consumer.internals.AbstractCoordinator - Received group coordinator response ClientResponse(receivedTimeMs=1507773359876, disconnected=false, request=ClientRequest(expectResponse=true, callback=org.apache.kafka.clients.consumer.internals.ConsumerNetworkClient$RequestFutureCompletionHandler@93c1d29, request=RequestSend(header={api_key=10,api_version=0,correlation_id=23,client_id=consumer-1}, body={group_id=group3}), createdTimeMs=1507773359873, sendTimeMs=1507773359873), responseBody={error_code=15,coordinator={node_id=-1,host=,port=-1}})
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.clients.NetworkClient - Sending metadata request {topics=[test2]} to node 406
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.clients.Metadata - Updated cluster metadata version 14 to Cluster(nodes = [kafka-3:9092 (id: 405 rack: null), kafka-2:9092 (id: 406 rack: null), kafka-1:9092 (id: 404 rack: null)], partitions = [Partition(topic = test2, partition = 0, leader = 406, replicas = [406,], isr = [406,]])
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.clients.consumer.internals.AbstractCoordinator - Sending coordinator request for group group3 to broker kafka-3:9092 (id: 405 rack: null)
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.clients.consumer.internals.AbstractCoordinator - Received group coordinator response ClientResponse(receivedTimeMs=1507773359980, disconnected=false, request=ClientRequest(expectResponse=true, callback=org.apache.kafka.clients.consumer.internals.ConsumerNetworkClient$RequestFutureCompletionHandler@1ff84e39, request=RequestSend(header={api_key=10,api_version=0,correlation_id=25,client_id=consumer-1}, body={group_id=group3}), createdTimeMs=1507773359977, sendTimeMs=1507773359977), responseBody={error_code=15,coordinator={node_id=-1,host=,port=-1}})
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.clients.NetworkClient - Sending metadata request {topics=[test2]} to node 406
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.clients.Metadata - Updated cluster metadata version 15 to Cluster(nodes = [kafka-1:9092 (id: 404 rack: null), kafka-3:9092 (id: 405 rack: null), kafka-2:9092 (id: 406 rack: null)], partitions = [Partition(topic = test2, partition = 0, leader = 406, replicas = [406,], isr = [406,]])
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.clients.consumer.internals.AbstractCoordinator - Sending coordinator request for group group3 to broker kafka-3:9092 (id: 405 rack: null)
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.clients.consumer.internals.AbstractCoordinator - Received group coordinator response ClientResponse(receivedTimeMs=1507773360088, disconnected=false, request=ClientRequest(expectResponse=true, callback=org.apache.kafka.clients.consumer.internals.ConsumerNetworkClient$RequestFutureCompletionHandler@5d7fa66c, request=RequestSend(header={api_key=10,api_version=0,correlation_id=27,client_id=consumer-1}, body={group_id=group3}), createdTimeMs=1507773360083, sendTimeMs=1507773360083), responseBody={error_code=15,coordinator={node_id=-1,host=,port=-1}})
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.clients.NetworkClient - Sending metadata request {topics=[test2]} to node 405
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.clients.Metadata - Updated cluster metadata version 16 to Cluster(nodes = [kafka-2:9092 (id: 406 rack: null), kafka-3:9092 (id: 405 rack: null), kafka-1:9092 (id: 404 rack: null)], partitions = [Partition(topic = test2, partition = 0, leader = 406, replicas = [406,], isr = [406,]])
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.clients.consumer.internals.AbstractCoordinator - Sending coordinator request for group group3 to broker kafka-2:9092 (id: 406 rack: null)
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.clients.consumer.internals.AbstractCoordinator - Received group coordinator response ClientResponse(receivedTimeMs=1507773360190, disconnected=false, request=ClientRequest(expectResponse=true, callback=org.apache.kafka.clients.consumer.internals.ConsumerNetworkClient$RequestFutureCompletionHandler@72454f52, request=RequestSend(header={api_key=10,api_version=0,correlation_id=29,client_id=consumer-1}, body={group_id=group3}), createdTimeMs=1507773360187, sendTimeMs=1507773360187), responseBody={error_code=15,coordinator={node_id=-1,host=,port=-1}})
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.clients.NetworkClient - Sending metadata request {topics=[test2]} to node 406
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.clients.Metadata - Updated cluster metadata version 17 to Cluster(nodes = [kafka-1:9092 (id: 404 rack: null), kafka-2:9092 (id: 406 rack: null), kafka-3:9092 (id: 405 rack: null)], partitions = [Partition(topic = test2, partition = 0, leader = 406, replicas = [406,], isr = [406,]])
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.clients.consumer.internals.AbstractCoordinator - Sending coordinator request for group group3 to broker kafka-2:9092 (id: 406 rack: null)
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.clients.consumer.internals.AbstractCoordinator - Received group coordinator response ClientResponse(receivedTimeMs=1507773360292, disconnected=false, request=ClientRequest(expectResponse=true, callback=org.apache.kafka.clients.consumer.internals.ConsumerNetworkClient$RequestFutureCompletionHandler@1bf9c166, request=RequestSend(header={api_key=10,api_version=0,correlation_id=31,client_id=consumer-1}, body={group_id=group3}), createdTimeMs=1507773360290, sendTimeMs=1507773360290), responseBody={error_code=15,coordinator={node_id=-1,host=,port=-1}})
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.clients.NetworkClient - Sending metadata request {topics=[test2]} to node 406
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.clients.Metadata - Updated cluster metadata version 18 to Cluster(nodes = [kafka-3:9092 (id: 405 rack: null), kafka-2:9092 (id: 406 rack: null), kafka-1:9092 (id: 404 rack: null)], partitions = [Partition(topic = test2, partition = 0, leader = 406, replicas = [406,], isr = [406,]])
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.clients.consumer.internals.AbstractCoordinator - Sending coordinator request for group group3 to broker kafka-2:9092 (id: 406 rack: null)
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.clients.consumer.internals.AbstractCoordinator - Received group coordinator response ClientResponse(receivedTimeMs=1507773360397, disconnected=false, request=ClientRequest(expectResponse=true, callback=org.apache.kafka.clients.consumer.internals.ConsumerNetworkClient$RequestFutureCompletionHandler@46adcda6, request=RequestSend(header={api_key=10,api_version=0,correlation_id=33,client_id=consumer-1}, body={group_id=group3}), createdTimeMs=1507773360394, sendTimeMs=1507773360394), responseBody={error_code=15,coordinator={node_id=-1,host=,port=-1}})
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.clients.NetworkClient - Sending metadata request {topics=[test2]} to node 406
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.clients.Metadata - Updated cluster metadata version 19 to Cluster(nodes = [kafka-2:9092 (id: 406 rack: null), kafka-1:9092 (id: 404 rack: null), kafka-3:9092 (id: 405 rack: null)], partitions = [Partition(topic = test2, partition = 0, leader = 406, replicas = [406,], isr = [406,]])
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.clients.consumer.internals.AbstractCoordinator - Sending coordinator request for group group3 to broker kafka-3:9092 (id: 405 rack: null)
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.clients.consumer.internals.AbstractCoordinator - Received group coordinator response ClientResponse(receivedTimeMs=1507773360502, disconnected=false, request=ClientRequest(expectResponse=true, callback=org.apache.kafka.clients.consumer.internals.ConsumerNetworkClient$RequestFutureCompletionHandler@66c15fd9, request=RequestSend(header={api_key=10,api_version=0,correlation_id=35,client_id=consumer-1}, body={group_id=group3}), createdTimeMs=1507773360498, sendTimeMs=1507773360498), responseBody={error_code=15,coordinator={node_id=-1,host=,port=-1}})
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.clients.NetworkClient - Sending metadata request {topics=[test2]} to node 405
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.clients.Metadata - Updated cluster metadata version 20 to Cluster(nodes = [kafka-1:9092 (id: 404 rack: null), kafka-3:9092 (id: 405 rack: null), kafka-2:9092 (id: 406 rack: null)], partitions = [Partition(topic = test2, partition = 0, leader = 406, replicas = [406,], isr = [406,]])
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.clients.consumer.internals.AbstractCoordinator - Sending coordinator request for group group3 to broker kafka-3:9092 (id: 405 rack: null)
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.clients.consumer.internals.AbstractCoordinator - Received group coordinator response ClientResponse(receivedTimeMs=1507773360609, disconnected=false, request=ClientRequest(expectResponse=true, callback=org.apache.kafka.clients.consumer.internals.ConsumerNetworkClient$RequestFutureCompletionHandler@3ea6a38c, request=RequestSend(header={api_key=10,api_version=0,correlation_id=37,client_id=consumer-1}, body={group_id=group3}), createdTimeMs=1507773360604, sendTimeMs=1507773360604), responseBody={error_code=15,coordinator={node_id=-1,host=,port=-1}})
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.clients.NetworkClient - Sending metadata request {topics=[test2]} to node 406
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.clients.Metadata - Updated cluster metadata version 21 to Cluster(nodes = [kafka-1:9092 (id: 404 rack: null), kafka-2:9092 (id: 406 rack: null), kafka-3:9092 (id: 405 rack: null)], partitions = [Partition(topic = test2, partition = 0, leader = 406, replicas = [406,], isr = [406,]])
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.clients.consumer.internals.AbstractCoordinator - Sending coordinator request for group group3 to broker kafka-3:9092 (id: 405 rack: null)
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.clients.consumer.internals.AbstractCoordinator - Received group coordinator response ClientResponse(receivedTimeMs=1507773360713, disconnected=false, request=ClientRequest(expectResponse=true, callback=org.apache.kafka.clients.consumer.internals.ConsumerNetworkClient$RequestFutureCompletionHandler@6b81b7cf, request=RequestSend(header={api_key=10,api_version=0,correlation_id=39,client_id=consumer-1}, body={group_id=group3}), createdTimeMs=1507773360709, sendTimeMs=1507773360709), responseBody={error_code=15,coordinator={node_id=-1,host=,port=-1}})
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.clients.NetworkClient - Sending metadata request {topics=[test2]} to node 405
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.clients.Metadata - Updated cluster metadata version 22 to Cluster(nodes = [kafka-2:9092 (id: 406 rack: null), kafka-3:9092 (id: 405 rack: null), kafka-1:9092 (id: 404 rack: null)], partitions = [Partition(topic = test2, partition = 0, leader = 406, replicas = [406,], isr = [406,]])
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.clients.consumer.internals.AbstractCoordinator - Sending coordinator request for group group3 to broker kafka-2:9092 (id: 406 rack: null)
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.clients.consumer.internals.AbstractCoordinator - Received group coordinator response ClientResponse(receivedTimeMs=1507773360816, disconnected=false, request=ClientRequest(expectResponse=true, callback=org.apache.kafka.clients.consumer.internals.ConsumerNetworkClient$RequestFutureCompletionHandler@43e987e4, request=RequestSend(header={api_key=10,api_version=0,correlation_id=41,client_id=consumer-1}, body={group_id=group3}), createdTimeMs=1507773360813, sendTimeMs=1507773360813), responseBody={error_code=15,coordinator={node_id=-1,host=,port=-1}})
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.clients.NetworkClient - Sending metadata request {topics=[test2]} to node 405
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.clients.Metadata - Updated cluster metadata version 23 to Cluster(nodes = [kafka-1:9092 (id: 404 rack: null), kafka-2:9092 (id: 406 rack: null), kafka-3:9092 (id: 405 rack: null)], partitions = [Partition(topic = test2, partition = 0, leader = 406, replicas = [406,], isr = [406,]])
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.clients.consumer.internals.AbstractCoordinator - Sending coordinator request for group group3 to broker kafka-2:9092 (id: 406 rack: null)
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.clients.consumer.internals.AbstractCoordinator - Received group coordinator response ClientResponse(receivedTimeMs=1507773360922, disconnected=false, request=ClientRequest(expectResponse=true, callback=org.apache.kafka.clients.consumer.internals.ConsumerNetworkClient$RequestFutureCompletionHandler@2f3a37d7, request=RequestSend(header={api_key=10,api_version=0,correlation_id=43,client_id=consumer-1}, body={group_id=group3}), createdTimeMs=1507773360918, sendTimeMs=1507773360918), responseBody={error_code=15,coordinator={node_id=-1,host=,port=-1}})
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.clients.NetworkClient - Sending metadata request {topics=[test2]} to node 405
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.clients.Metadata - Updated cluster metadata version 24 to Cluster(nodes = [kafka-1:9092 (id: 404 rack: null), kafka-2:9092 (id: 406 rack: null), kafka-3:9092 (id: 405 rack: null)], partitions = [Partition(topic = test2, partition = 0, leader = 406, replicas = [406,], isr = [406,]])
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.clients.consumer.internals.AbstractCoordinator - Sending coordinator request for group group3 to broker kafka-2:9092 (id: 406 rack: null)
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.clients.consumer.internals.AbstractCoordinator - Received group coordinator response ClientResponse(receivedTimeMs=1507773361037, disconnected=false, request=ClientRequest(expectResponse=true, callback=org.apache.kafka.clients.consumer.internals.ConsumerNetworkClient$RequestFutureCompletionHandler@240b4b7f, request=RequestSend(header={api_key=10,api_version=0,correlation_id=45,client_id=consumer-1}, body={group_id=group3}), createdTimeMs=1507773361026, sendTimeMs=1507773361026), responseBody={error_code=15,coordinator={node_id=-1,host=,port=-1}})
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.clients.NetworkClient - Sending metadata request {topics=[test2]} to node 406
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.clients.Metadata - Updated cluster metadata version 25 to Cluster(nodes = [kafka-2:9092 (id: 406 rack: null), kafka-1:9092 (id: 404 rack: null), kafka-3:9092 (id: 405 rack: null)], partitions = [Partition(topic = test2, partition = 0, leader = 406, replicas = [406,], isr = [406,]])
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.clients.consumer.internals.AbstractCoordinator - Sending coordinator request for group group3 to broker kafka-3:9092 (id: 405 rack: null)
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.clients.consumer.internals.AbstractCoordinator - Received group coordinator response ClientResponse(receivedTimeMs=1507773361132, disconnected=false, request=ClientRequest(expectResponse=true, callback=org.apache.kafka.clients.consumer.internals.ConsumerNetworkClient$RequestFutureCompletionHandler@4252affe, request=RequestSend(header={api_key=10,api_version=0,correlation_id=47,client_id=consumer-1}, body={group_id=group3}), createdTimeMs=1507773361128, sendTimeMs=1507773361129), responseBody={error_code=15,coordinator={node_id=-1,host=,port=-1}})
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.clients.NetworkClient - Sending metadata request {topics=[test2]} to node 406
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.clients.Metadata - Updated cluster metadata version 26 to Cluster(nodes = [kafka-3:9092 (id: 405 rack: null), kafka-1:9092 (id: 404 rack: null), kafka-2:9092 (id: 406 rack: null)], partitions = [Partition(topic = test2, partition = 0, leader = 406, replicas = [406,], isr = [406,]])
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.clients.consumer.internals.AbstractCoordinator - Sending coordinator request for group group3 to broker kafka-3:9092 (id: 405 rack: null)
[ForkJoinPool-1-worker-5] DEBUG org.apache.kafka.clients.consumer.internals.AbstractCoordinator - Received group coordinator response ClientResponse(receivedTimeMs=1507773361235, disconnected=false, request=ClientRequest(expectResponse=true, callback=org.apache.kafka.clients.consumer.internals.ConsumerNetworkClient$RequestFutureCompletionHandler@4d0bc6f7, request=RequestSend(header={api_key=10,api_version=0,correlation_id=49,client_id=consumer-1}, body={group_id=group3}), createdTimeMs=1507773361232, sendTimeMs=1507773361232), responseBody={error_code=15,coordinator={node_id=-1,host=,port=-1}})
关注的重点应该是responseBody={error_code=15,coordinator={node_id=-1,host=,port=-1}}),在客户端进行消费之前会为ConsumerGroup向Kafka集群申请coordinater节点。kafka集群在配置或分配coordinater节点的时候可能会短暂的报这个错误。可是我的是一直出现这个错误,开始怀疑是kafka配置出现问题,后来将zookeeper上kafka的配置完全删掉再重启Kafka,再运行还是这样,后来我发现是集群上的kafka集群版本降到0.9了,而我本地的是0.10,线上环境不支持我的高版本所致。ε=(´ο`*)))唉,早该想到是版本问题的。