zookeeper报错:myid file is missing

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了zookeeper报错:myid file is missing相关的知识,希望对你有一定的参考价值。

参考技术A kafka_2.12-2.7.0 及集成的zookeeper

启动kafka环境中的zookeeper时报错如下:

主要报错信息为“Caused by: java.lang.IllegalArgumentException: myid file is missing“,这是由于我迁移了kafka的环境,但在<code>dataDir</code>目录下未创建myid导致。
创建以后问题解决。

zookeeper报错问题

2016-05-23 17:18:11,106 [myid:1] - INFO  [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2182:[email protected]] - Closed socket connection for client /127.0.0.1:11430 (no session established for client)
2016-05-23 17:18:41,751 [myid:1] - INFO  [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2182:[email protected]] - Accepted socket connection from /127.0.0.1:12098
2016-05-23 17:18:41,751 [myid:1] - WARN  [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2182:[email protected]] - caught end of stream exception
EndOfStreamException: Unable to read additional data from client sessionid 0x0, likely client has closed socket
at org.apache.zookeeper.server.NIOServerCnxn.doIO(NIOServerCnxn.java:230)
at org.apache.zookeeper.server.NIOServerCnxnFactory.run(NIOServerCnxnFactory.java:203)
at java.lang.Thread.run(Thread.java:745)
2016-05-23 17:18:41,751 [myid:1] - INFO  [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2182:[email protected]] - Closed socket connection for client /127.0.0.1:12098 (no session established for client)
2016-05-23 17:18:55,219 [myid:1] - WARN  [SyncThread:1:[email protected]] - fsync-ing the write ahead log in SyncThread:1 took 1243ms which will adversely effect operation latency. See the ZooKeeper troubleshooting guide
2016-05-23 17:19:11,679 [myid:1] - INFO  [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2182:[email protected]] - Accepted socket connection from /127.0.0.1:12815
2016-05-23 17:19:11,680 [myid:1] - WARN  [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2182:[email protected]] - caught end of stream exception
EndOfStreamException: Unable to read additional data from client sessionid 0x0, likely client has closed socket
at org.apache.zookeeper.server.NIOServerCnxn.doIO(NIOServerCnxn.java:230)
at org.apache.zookeeper.server.NIOServerCnxnFactory.run(NIOServerCnxnFactory.java:203)
at java.lang.Thread.run(Thread.java:745)
2016-05-23 17:19:11,680 [myid:1] - INFO  [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2182:[email protected]] - Closed socket connection for client /127.0.0.1:12815 (no session established for client)
2016-05-23 17:19:41,018 [myid:1] - INFO  [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2182:[email protected]] - Accepted socket connection from /127.0.0.1:13507
2016-05-23 17:19:41,018 [myid:1] - WARN  [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2182:[email protected]] - caught end of stream exception
EndOfStreamException: Unable to read additional data from client sessionid 0x0, likely client has closed socket


本文出自 “不求最好,只求更好” 博客,请务必保留此出处http://yujianglei.blog.51cto.com/7215578/1782211

以上是关于zookeeper报错:myid file is missing的主要内容,如果未能解决你的问题,请参考以下文章

zookeeper启动报错(数据目录权限不对)

zookeeper启动报错: Invalid configuration, only one server specified (ignoring)

zookeeper报错问题

vritulbox中linux安装zookeeper报错:

zookeeper启动报错:java.io.EOFException

创建Zookeeper伪集群启动失败