Tht is client port and election address Snippet from zookeeper doc (http://zookeeper.apache.org/doc/r3.1.2/zookeeperStarted.html):
Note If you want to test multiple servers on a single machine, specify the servername as localhost with unique quorum & leader election ports (i.e. 2888:3888, 2889:3889, 2890:3890 in the example above) for each server.X in that server's config file. Of course separate dataDirs and distinct clientPorts are also necessary (in the above replicated example, running on a single localhost, you would still have three config files). -Sagar On Wed, Dec 7, 2011 at 5:42 PM, Shrijeet Paliwal <[email protected]> wrote: > You mean this property : hbase.zookeeper.property.clientPort ? > > > On Wed, Dec 7, 2011 at 5:38 PM, sagar naik <[email protected]> wrote: > >> We are running two hbase instances. >> Two zookeepers are running on same machine. >> >> When I start the second one: I get port conflict. >> >> Is there any way I can specify election port for zookeeper via >> hbase-site.xml >> >> >> Thanks, >> Sagar >> >> >> 2011-12-07 17:36:51,375 INFO >> org.apache.zookeeper.server.quorum.QuorumCnxManager: My election bind >> port: 3888 >> 2011-12-07 17:36:51,375 ERROR >> org.apache.zookeeper.server.quorum.QuorumCnxManager: Exception while >> listening >> java.net.BindException: Address already in use >> at sun.nio.ch.Net.bind(Native Method) >> at >> sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:126) >> at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59) >> at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:52) >> at >> org.apache.zookeeper.server.quorum.QuorumCnxManager$Listener.run(QuorumCnxManager.java:475) >>
