The error message 'Unreasonable length = 308375649' suggests an issue with the data being sent from your client to the Zookeeper server. The server considers this length unreasonable, indicating a potential problem with the data or your Zookeeper server configuration.

One possible explanation is that your topic name is too long, exceeding the maximum limit allowed by the Zookeeper server. Try shortening the topic name to resolve the error.

Another possibility is a network issue or a problem with the Zookeeper server itself. Consider restarting the Zookeeper server or checking your network connection to see if it resolves the error.

The specific error details from the stack trace can provide more insights into the problem:

[2023-04-23 10:55:52,383] WARN Close of session 0x0 (org.apache.zookeeper.server.NIOServerCnxn)
java.io.IOException: Unreasonable length = 308375649
	at org.apache.jute.BinaryInputArchive.checkLength(BinaryInputArchive.java:166)
	at org.apache.jute.BinaryInputArchive.readBuffer(BinaryInputArchive.java:127)
	at org.apache.zookeeper.proto.ConnectRequest.deserialize(ConnectRequest.java:91)
	at org.apache.zookeeper.server.ZooKeeperServer.processConnectRequest(ZooKeeperServer.java:1350)
	at org.apache.zookeeper.server.NIOServerCnxn.readConnectRequest(NIOServerCnxn.java:419)
	at org.apache.zookeeper.server.NIOServerCnxn.readPayload(NIOServerCnxn.java:180)
	at org.apache.zookeeper.server.NIOServerCnxn.doIO(NIOServerCnxn.java:339)
	at org.apache.zookeeper.server.NIOServerCnxnFactory$IOWorkRequest.doWork(NIOServerCnxnFactory.java:522)
	at org.apache.zookeeper.server.WorkerService$ScheduledWorkRequest.run(WorkerService.java:154)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

Analyze this stack trace to identify the specific point where the error occurs and pinpoint the root cause more accurately.

Zookeeper Error: 'Unreasonable length' When Creating Kafka Topic

原文地址: https://www.cveoy.top/t/topic/nCsF 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录