org.apache.kafka.common.KafkaExceptioption: Unexpected error from SyncGroup: The server experienced an unexpected error when processing the request
at at org.apache.kafka.clients.consumer.internals.AbstractCoordoordinator$or$SyncGroupResponseHandler.handle(Abs(le(AbstractCoordinator.java:548)a)
at at org.apache.kafka.clients.consumer.internals.AbstractCoordoordinator$or$SyncGroupResponseHandler.handle(Abs(le(AbstractCoordinator.java:521)a)
at at org.apache.kafka.clients.consumer.internals.AbstractCoordoordinator$or$CoordinatorResponseHandler.onSuccess(Abs(ss(AbstractCoordinator.java:784)a)
at at org.apache.kafka.clients.consumer.internals.AbstractCoordoordinator$or$CoordinatorResponseHandler.onSuccess(Abs(ss(AbstractCoordinator.java:765)a)
at at org.apache.kafka.clients.consumer.internals.RequestFutureture$re$1.onSuccess(Req(ss(RequestFuture.java:186)a)
at at org.apache.kafka.clients.consumer.internals.RequestFuture.fireSuccess(Rss(ss(RequestFuture.java:149)a)
at at org.apache.kafka.clients.consumer.internals.RequestFuture.completplete(te(RequestFuture.java:116)a)
at at org.apache.kafka.clients.consumer.internals.ConsumerNetwoetworkClient$nt$RequestFutureCompletionHandler.fireCompletioetion(on(ConsumerNetworkClient.java:493)a)
at at org.apache.kafka.clients.consumer.internals.ConsumerNetworkClient.firePendingCongCompletedRequests(ts(ConsumerNetworkClient.java:322)a)
at at org.apache.kafka.clients.consumer.internals.ConsumerNetworkClient.poll(Con(ll(ConsumerNetworkClient.java:253)a)
at at org.apache.kafka.clients.consumer.internals.ConsumerNetworkClient.poll(Con(ll(ConsumerNetworkClient.java:172)a)
at at org.apache.kafka.clients.consumer.internals.AbstractCoordinator.joinGroupIfNeIfNeeded(ed(AbstractCoordinator.java:347)a)
at at org.apache.kafka.clients.consumer.internals.AbstractCoordinator.ensureActiveGiveGroup(up(AbstractCoordinator.java:303)a)
at at org.apache.kafka.clients.consumer.internals.ConsumerCoordinator.poll(Con(ll(ConsumerCoordinator.java:290)a)
at at org.apache.kafka.clients.consumer.KafkaConsumer.pollOnce(Kaf(ce(KafkaConsumer.java:1029)a)
at at org.apache.kafka.clients.consumer.KafkaConsumer.poll(Kaf(ll(KafkaConsumer.java:995)a)
at at com.Servo.file.service.ConsumerListener.run(Con(un(ConsumerListener.java:40)a)
at at java.lang.Thread.run(Unk(Unknown Source)
我更改了groupid,它起作用了。 为什么?
我收到此代码的错误:
ConsumerRecords<String, String> records = consumer.poll(100);