007_zkCli.sh

Posted itcomputer

tags:

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

一、

[zk: localhost:2181(CONNECTED) 1] rmr /zkTestPaths_9
2018-06-25 11:18:30,189 [myid:] - WARN [main-SendThread(localhost:2181):[email protected]] - Session 0x6f641b31986c006c for server localhost/127.0.0.1:2181, unexpected error, closing socket connection and attempting reconnect
java.io.IOException: Packet len5717030 is out of range!
at org.apache.zookeeper.ClientCnxnSocket.readLength(ClientCnxnSocket.java:112)
at org.apache.zookeeper.ClientCnxnSocketNIO.doIO(ClientCnxnSocketNIO.java:79)
at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:366)
at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1141)

WATCHER::

WatchedEvent state:Disconnected type:None path:null
Exception in thread "main" org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /zkTestPaths_9
at org.apache.zookeeper.KeeperException.create(KeeperException.java:99)
at org.apache.zookeeper.KeeperException.create(KeeperException.java:51)
at org.apache.zookeeper.ZooKeeper.getChildren(ZooKeeper.java:1532)
at org.apache.zookeeper.ZooKeeper.getChildren(ZooKeeper.java:1560)
at org.apache.zookeeper.ZKUtil.listSubTreeBFS(ZKUtil.java:114)
at org.apache.zookeeper.ZKUtil.deleteRecursive(ZKUtil.java:49)
at org.apache.zookeeper.ZooKeeperMain.processZKCmd(ZooKeeperMain.java:714)
at org.apache.zookeeper.ZooKeeperMain.processCmd(ZooKeeperMain.java:599)
at org.apache.zookeeper.ZooKeeperMain.executeLine(ZooKeeperMain.java:371)
at org.apache.zookeeper.ZooKeeperMain.run(ZooKeeperMain.java:331)
at org.apache.zookeeper.ZooKeeperMain.main(ZooKeeperMain.java:290)

二、解决

"-Djute.maxbuffer=50111000"
ZOOBIN="${BASH_SOURCE-$0}"
ZOOBIN="$(dirname "${ZOOBIN}")"
ZOOBINDIR="$(cd "${ZOOBIN}"; pwd)"

if [ -e "$ZOOBIN/../libexec/zkEnv.sh" ]; then
  . "$ZOOBINDIR"/../libexec/zkEnv.sh
else
  . "$ZOOBINDIR"/zkEnv.sh
fi

"$JAVA" "-Dzookeeper.log.dir=${ZOO_LOG_DIR}" "-Dzookeeper.root.logger=${ZOO_LOG4J_PROP}"      "-Djute.maxbuffer=50111000" -cp "$CLASSPATH" $CLIENT_JVMFLAGS $JVMFLAGS      org.apache.zookeeper.ZooKeeperMain "[email protected]"

  

 



















以上是关于007_zkCli.sh的主要内容,如果未能解决你的问题,请参考以下文章

ZooKeeper 之zkCli.sh 客户端一文读懂

ZooKeeper命令行工具zkCli.sh

./zkcli.sh: line 13: unzip: command not found

zookeepeer使用zkCli.sh命令

使用zkcli.sh来管理SolrCloud配置文件

转zookeeper之 zkServer.sh命令zkCli.sh命令四字命令