The client connects to the ZK server, then Ls/curator_sample, with the following error:
Search from the Internet to an article: http://stackoverflow.com/questions/10249579/ Zookeeper-cli-failing-ioexception-packet-len12343123123-is-out-of-range
One of the answers is:
I went to see the next error in the location of the Clientcnxnsocket.java 112 lines. The code is as follows:
Found the size of the Packetlen is 4096*1024,
It turns out that the data returned is larger than the 4096*1024.
The LS operation is to see a list of all child node names. So the size of the data to be returned is probably: the product of the node name and the number of nodes is probably more than 4096*1024. So the node name should be as small as possible to create more nodes. Of course, under the Sub-node of a node there will be a child node of Dali, which is usually nested in layers. Solution: You can set a larger parameter by using the parameter jute.maxbuffer. Used to configure the maximum amount of data that can be stored on a single data node. It is important to note that when changing this parameter, all machines in the zookeeper cluster and all clients must be set to take effect.