Ioexception:packet len5601403 is out of range!

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.