Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hbase master not able to start

Tags:

hadoop

hbase

I am trying to start hbase master but getting the below error:

Could not start ZK at requested port of 2181.  ZK was started at port: 2182.  Aborting as clients (e.g. shell) will not be able to find this ZK quorum.
13/07/14 06:33:23 ERROR master.HMasterCommandLine: Failed to start master
java.io.IOException: Could not start ZK at requested port of 2181.  ZK was started at port: 2182.  Aborting as clients (e.g. shell) will not be able to find this ZK quorum.
    at org.apache.hadoop.hbase.master.HMasterCommandLine.startMaster(HMasterCommandLine.java:134)
    at org.apache.hadoop.hbase.master.HMasterCommandLine.run(HMasterCommandLine.java:103)
    at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
    at org.apache.hadoop.hbase.util.ServerCommandLine.doMain(ServerCommandLine.java:76)
    at org.apache.hadoop.hbase.master.HMaster.main(HMaster.java:1684)
13/07/14 06:33:23 INFO server.NIOServerCnxn: Closed socket connection for client /127.0.0.1:46283 (no session established for client)

hbase-site.xml

<configuration> 
  <!-- Changing the default port for REST since it conflicts with yarn nodemanager --> 
  <property> 
    <name>hbase.rest.port</name> 
    <value>8070</value> 
    <description>The port for the HBase REST server.</description> 
  </property> 
  <property> 
    <name>hbase.rootdir</name> 
    <value>hdfs://localhost:8020/hbase</value> 
  </property> 
</configuration>
like image 960
user2580738 Avatar asked Oct 16 '25 03:10

user2580738


1 Answers

It seems like something else is already using port 2181, or perhaps you had started another ZK instance earlier on this port. Either stop that processe or change its port. If that's is not possible then set hbase.zookeeper.property.clientPort to 2182 in hbase-site.xml.

Please note that HBase needs ZK's services, even in standalone mode, so you should make sure that it's running OK.

HTH

like image 117
Tariq Avatar answered Oct 19 '25 14:10

Tariq



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!