Return-Path: Delivered-To: apmail-hadoop-zookeeper-user-archive@minotaur.apache.org Received: (qmail 61116 invoked from network); 31 Mar 2010 15:57:49 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 31 Mar 2010 15:57:49 -0000 Received: (qmail 86383 invoked by uid 500); 31 Mar 2010 15:57:48 -0000 Delivered-To: apmail-hadoop-zookeeper-user-archive@hadoop.apache.org Received: (qmail 86316 invoked by uid 500); 31 Mar 2010 15:57:48 -0000 Mailing-List: contact zookeeper-user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: zookeeper-user@hadoop.apache.org Delivered-To: mailing list zookeeper-user@hadoop.apache.org Received: (qmail 86304 invoked by uid 99); 31 Mar 2010 15:57:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 Mar 2010 15:57:48 +0000 X-ASF-Spam-Status: No, hits=-0.5 required=10.0 tests=AWL,RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: 216.145.54.171 is neither permitted nor denied by domain of phunt@apache.org) Received: from [216.145.54.171] (HELO mrout1.yahoo.com) (216.145.54.171) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 Mar 2010 15:57:41 +0000 Received: from [10.72.76.250] ([10.72.76.250]) by mrout1.yahoo.com (8.13.6/8.13.6/y.out) with ESMTP id o2VFuBX4047045; Wed, 31 Mar 2010 08:56:11 -0700 (PDT) Message-ID: <4BB3709B.10600@apache.org> Date: Wed, 31 Mar 2010 08:56:11 -0700 From: Patrick Hunt User-Agent: Thunderbird 2.0.0.24 (X11/20100317) MIME-Version: 1.0 To: zookeeper-user@hadoop.apache.org, liqiyuan312@gmail.com Subject: Re: the error References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi Li, when you say 17 threads reading a znode, do you mean that you have 17 threads each creating a session and using that session to read a znode? If so it's probably due to this: http://hadoop.apache.org/zookeeper/docs/current/zookeeperAdmin.html#sc_advancedConfiguration see the parameter "maxClientCnxns", this defaults to 10. Try setting the value to 0 (no limit) in your server config, restart server, and see if that helps. Patrick li li wrote: > Dear developer, > when I use the zookeeper in a cluster of two machine.I find problem when I > make the over 17 threads read data in one znode. > I will get the err info as follows.I will be greatly appreciated if you can > tell the reason why this happy. > > 2010-03-31 17:46:59,718 - WARN [main-SendThread:ClientCnxn$SendThread@967] > - Exception closing session 0x0 to sun.nio.ch.SelectionKeyImpl@3a953a95 > java.io.IOException: Read error rc = -1 java.nio.DirectByteBuffer[pos=0 > lim=4 cap=4] > at org.apache.zookeeper.ClientCnxn$SendThread.doIO(ClientCnxn.java:701) > at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:945) > 2010-03-31 17:46:59,734 - WARN [main-SendThread:ClientCnxn$SendThread@967] > - Exception closing session 0x0 to sun.nio.ch.SelectionKeyImpl@3dce3dce > java.io.IOException: Read error rc = -1 java.nio.DirectByteBuffer[pos=0 > lim=4 cap=4] > at org.apache.zookeeper.ClientCnxn$SendThread.doIO(ClientCnxn.java:701) > at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:945) > > I am looking forward your reply.Thanks for your reading >