You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Jean-Daniel Cryans (JIRA)" <ji...@apache.org> on 2013/09/13 00:42:52 UTC

[jira] [Assigned] (HBASE-9425) Starting a LocalHBaseCluster when 2181 is occupied results in "Too many open files"

     [ https://issues.apache.org/jira/browse/HBASE-9425?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jean-Daniel Cryans reassigned HBASE-9425:
-----------------------------------------

    Assignee: Jean-Daniel Cryans
    
> Starting a LocalHBaseCluster when 2181 is occupied results in "Too many open files"
> -----------------------------------------------------------------------------------
>
>                 Key: HBASE-9425
>                 URL: https://issues.apache.org/jira/browse/HBASE-9425
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 0.96.0
>            Reporter: Jean-Daniel Cryans
>            Assignee: Jean-Daniel Cryans
>             Fix For: 0.98.0, 0.96.0
>
>
> This bug was introduced via HBASE-6677 "Random ZooKeeper port in test can overrun max port".
> If 2181 is occupied but you start a LocalHBaseCluster (let's say you untar hbase and start it right away) you'll get this:
> {noformat}
> 13/09/03 10:38:13 INFO server.NIOServerCnxnFactory: binding to port 0.0.0.0/0.0.0.0:2181
> 13/09/03 10:38:13 INFO server.NIOServerCnxnFactory: binding to port 0.0.0.0/0.0.0.0:2181
> 13/09/03 10:38:13 INFO server.NIOServerCnxnFactory: binding to port 0.0.0.0/0.0.0.0:2181
> ...
> 13/09/03 10:38:44 INFO server.NIOServerCnxnFactory: binding to port 0.0.0.0/0.0.0.0:2181
> 13/09/03 10:38:44 INFO server.NIOServerCnxnFactory: binding to port 0.0.0.0/0.0.0.0:2181
> 13/09/03 10:38:44 ERROR master.HMasterCommandLine: Master exiting
> java.io.IOException: Too many open files
>         at sun.nio.ch.EPollArrayWrapper.epollCreate(Native Method)
>         at sun.nio.ch.EPollArrayWrapper.<init>(EPollArrayWrapper.java:87)
>         at sun.nio.ch.EPollSelectorImpl.<init>(EPollSelectorImpl.java:68)
>         at sun.nio.ch.EPollSelectorProvider.openSelector(EPollSelectorProvider.java:36)
>         at java.nio.channels.Selector.open(Selector.java:227)
>         at org.apache.zookeeper.server.NIOServerCnxnFactory.<init>(NIOServerCnxnFactory.java:61)
>         at org.apache.hadoop.hbase.zookeeper.MiniZooKeeperCluster.startup(MiniZooKeeperCluster.java:165)
>         at org.apache.hadoop.hbase.zookeeper.MiniZooKeeperCluster.startup(MiniZooKeeperCluster.java:131)
>         at org.apache.hadoop.hbase.master.HMasterCommandLine.startMaster(HMasterCommandLine.java:164)
>         at org.apache.hadoop.hbase.master.HMasterCommandLine.run(HMasterCommandLine.java:134)
>         at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
>         at org.apache.hadoop.hbase.util.ServerCommandLine.doMain(ServerCommandLine.java:78)
>         at org.apache.hadoop.hbase.master.HMaster.main(HMaster.java:2812)
> {noformat}
> The reason is that MiniZookeeperCluster.selectClientPort returns 2181 if defaultClientPort is greater than 0, which it always is when starting a LocalHBaseCluster.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira