User7723337
User7723337

Reputation: 12018

ERROR: org.apache.hadoop.hbase.MasterNotRunningException: Retried 7 times

I have a standalone VM Ubuntu setup, on which i have installed Hadoop and Hbase,
But i am struggling with following error for long time.

ERROR: org.apache.hadoop.hbase.MasterNotRunningException: Retried 7 times

I am getting error while doing create table in hbase shell create 't1','f1','f2'

For fixing this error i tired following things:

  1. Change 127.0.1.1 to 127.0.0.1 for host in file /etc/hosts.
  2. appended ubuntu to 127.0.0.1 host line in file /etc/hosts.
  3. Tried to run hbase by using hbase-daemon.sh <start/stop> <service_name> command.

But nothing of above seems to work.

I am using Hadoop Version 1.1.2 and Hbase Version 0.94.8.

can someone please provide some help on this i am stuck on this for long time.

Upvotes: 1

Views: 2186

Answers (2)

sumanth
sumanth

Reputation: 1

actually there is bug in hbase version hbase-0.94.8,inside hbase-site.xml if u write roodir instead of rootdir it will work.actually we have to write hbase.rootdir

<property>
    <name>hbase.roodir</name>
    <value>hdfs://localhost:9000/hbase</value>
</property>

Upvotes: 0

Naveen
Naveen

Reputation: 21

I had faced the same problem after installing Hbase & did the below steps.

Just in your terminal go to Hbase->bin & run start-hbase.sh shown below .

user@client:/usr/local/hbase/bin$ start-hbase.sh

Then type jps in your terminal .Now HMaster will active .

user@client:/usr/local/hbase/bin$ jps

4492 SecondaryNameNode

11784 Jps

4792 TaskTracker

4275 DataNode

4583 JobTracker

4057 NameNode

11467 Main

8297 HMaster

After this I could create a table .

Upvotes: 1

Related Questions