0%

Unable to read additional data from client, it probably closed the socket

今天在用docker-compose 部署Apache DolphinScheduler的时候在我的mac上报如下的错,但是服务器上是正常的,正常来讲用docker部署项目不应该出现这种问题,上网查了很多,说是初始化Zookeeper连接时,将接收超时参数值调整大一些即可(tickTime2000改为10000),默认是毫秒(ms),但是还是不行,后来看到一篇文章说可能是docker内存不够的关系,后来将docker内存从2G跳到了4G好了,但感觉不太像是这个问题,所以记录一下

1
2
3
4
5
6
7
8
9
2021-02-27 19:21:26,435 [myid:1] - WARN  [NIOWorkerThread-1:NIOServerCnxn@364] - Unexpected exception
EndOfStreamException: Unable to read additional data from client, it probably closed the socket: address = /172.21.0.5:39431, session = 0x0
at org.apache.zookeeper.server.NIOServerCnxn.handleFailedRead(NIOServerCnxn.java:163)
at org.apache.zookeeper.server.NIOServerCnxn.doIO(NIOServerCnxn.java:326)
at org.apache.zookeeper.server.NIOServerCnxnFactory$IOWorkRequest.doWork(NIOServerCnxnFactory.java:522)
at org.apache.zookeeper.server.WorkerService$ScheduledWorkRequest.run(WorkerService.java:154)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
------------- 本文结束 感谢您的阅读-------------