Zookeeper CLI Error - IOException <len12343123123> Out of Range

Running zookeeper 3.3.3. I have a znode that I'm just trying to list through the CLI, as in:

ls / myznode / subznode

This fails with an IOException in org.apache.ClientCnxn $ SendThread.readLength on line 710.

Has anyone seen this? Someone suggested that possibly bad data is in znode. Not sure what, or how ... but I can’t delete it, because there is something in it.

+5
source share
7 answers

, znode . 5 . , Zookeeper . , . ZK ( - ). .

+2

, .

"-Djute.maxbuffer = 50111000" zkCli.sh script, , :

$JAVA "-Dzookeeper.log.dir=${ZOO_LOG_DIR}" "-Dzookeeper.root.logger=${ZOO_LOG4J_PROP}" \
 "-Djute.maxbuffer=49107800" -cp "$CLASSPATH" $CLIENT_JVMFLAGS $JVMFLAGS \
 org.apache.zookeeper.ZooKeeperMain "$@"

rmr/big/node

+7

,

707         void readLength() throws IOException {
708             int len = incomingBuffer.getInt();
709             if (len < 0 || len >= packetLen) {
710                 throw new IOException("Packet len" + len + " is out of range!");
711             }
712             incomingBuffer = ByteBuffer.allocate(len);
713         }

, , jute.maxBuffer. 4M, , , , . ?

+2

- "" SolrCloud (4.8.0), (4.8.1) .

+1

, - . , , solr, zookeeper.

bin/solr zk upconfig -z http://localhost: 9983/-n mynewconfig -d//to/configset, 8983.

zookeeper localhost: (hostPort + 1000)

, , , .

+1

? -

ZooKeeper zooKeeper = new ZooKeeper(hostPort, 3000, myWatcher);
String path = "/myznode/subznode"
List<String> children = zooKeeper.getChildren(path, false);
for (String child : children) {
    System.out.println(child);
}
0
source

I had a similar problem and I was able to fix it by installing zookeeper ports in 2181

0
source

All Articles