[ https://issues.apache.org/jira/browse/HBASE-9425?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13769021#comment-13769021 ]
Hudson commented on HBASE-9425: ------------------------------- SUCCESS: Integrated in hbase-0.96 #56 (See [https://builds.apache.org/job/hbase-0.96/56/]) HBASE-9425 Starting a LocalHBaseCluster when 2181 is occupied results in "Too many open files" (jdcryans: rev 1523810) * /hbase/branches/0.96/hbase-server/src/main/java/org/apache/hadoop/hbase/zookeeper/MiniZooKeeperCluster.java > 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 > > Attachments: HBASE-9425.patch > > > 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