I believe you are hitting the default zookeeper limit.  If hbase is not
managing zookeeper, edit zoo.cfg on the zookeeper server and add
maxClientCnxns=0 and restart the server. Otherwise there is a similar
setting on hbase, but can't recall it.

On Tue, Jul 19, 2011 at 11:36 PM, King JKing <[email protected]> wrote:

> Dear all,
>
> I application run well with HBase. But when I deploy my application to 10
> instances, the eleventh application not run.
>
> Maybe HBase have limit connection per IP?
> How can I fix my problem?
>
> I use zookeeper dump to see connection from my server to Hbase server. It
> show 10 connection.
> My HBase version is 0.9.1.
> My application also use Connection Pool.
>
> Here is log of the eleventh application:
> INFO [Thread-8-SendThread] 2011-07-20 10:54:41,340 ClientCnxn.java (line
> 869) Attempting connection to server /192.168.1.10:2181
>  INFO [Thread-8-SendThread] 2011-07-20 10:54:41,341 ClientCnxn.java (line
> 785) Priming connection to java.nio.channels.SocketChannel[connected
> local=/
> 192.168.1.7:9568 remote=/192.168.1.10:2181]
>  INFO [Thread-8-SendThread] 2011-07-20 10:54:41,341 ClientCnxn.java (line
> 937) Server connection successful
>  WARN [Thread-8-SendThread] 2011-07-20 10:54:41,341 ClientCnxn.java (line
> 967) Exception closing session 0x0 to sun.nio.ch.SelectionKeyImpl@7929b073
> 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)
>  WARN [Thread-8-SendThread] 2011-07-20 10:54:41,341 ClientCnxn.java (line
> 1001) Ignoring exception during shutdown input
> java.net.SocketException: Transport endpoint is not connected
> at sun.nio.ch.SocketChannelImpl.shutdown(Native Method)
> at sun.nio.ch.SocketChannelImpl.shutdownInput(SocketChannelImpl.java:633)
> at sun.nio.ch.SocketAdaptor.shutdownInput(SocketAdaptor.java:360)
> at org.apache.zookeeper.ClientCnxn$SendThread.cleanup(ClientCnxn.java:999)
> at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:970)
>
>
> Thank a lot for support.
>

Reply via email to