Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

hbase.MasterNotRunningException while creating table in Hbase

Tags:

hadoop

hbase

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

I got this error when I am creating the table in HBase. I am giving like in following way to create the table by using HBase. I type the following command on console.

create 'test', 'cf'

I got the above mentioned error. What would be the reasons for getting this error? I am trying this table in standalone system.

like image 341
sai Avatar asked Jan 04 '12 10:01

sai


3 Answers

this happens only if your namenode is in safe mode, so just enter the following command :- hdfs dfsadmin -safemode leave

this command worked for me all ways, try it for you.

like image 73
Devendra Bhat Avatar answered Oct 22 '22 18:10

Devendra Bhat


you should check hadoop and hbase logs. it seems hdfs does not started correctly. as codingFoo said you should wait about 1 minute after starting hdfs before starting hbase. after starting hbase check http://:60010 to see what is going on in your machines

like image 1
محمدباقر Avatar answered Oct 22 '22 18:10

محمدباقر


I was having the exactly same error. After spending lots of hours struggling, it is finally resolved just by writing 'ubuntu' besides hostname in the /etc/hosts file. i.e. 127.0.0.1 your-hostname ubuntu.

Obviously, this solution might work for you only if you are using Ubuntu.

like image 1
lisa Avatar answered Oct 22 '22 18:10

lisa