Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hbase fail to create table

Tags:

hbase

I started HBase using ./start-hbase.sh. I did ./hbase shell to start the shell of Hbase. The problem is that I can't create a new table.

$ ./hbase shell 
HBase Shell; enter 'help<RETURN>' for list of supported commands.
Type "exit<RETURN>" to leave the HBase Shell
Version 0.92.1, r1298924, Fri Mar  9 16:58:34 UTC 2012

hbase(main):001:0> create 'test','cf'

It stays like this forever. Can someone help?

Thanks

like image 600
thathashd Avatar asked Apr 19 '12 21:04

thathashd


1 Answers

Your HMaster not started.

1.Kindly check your Hmaster log.
If you see anything like this in your log.
INFO org.apache.hadoop.hbase.util.FSUtils: Waiting for dfs to exit safe mode...
then leave hadoop from safemode by using the following command.
hadoop dfsadmin -safemode leave

2.If you see anything like localhost not accepting or zookeeper not accepting. Then, Kindly modify the /etc/hosts and /etc/hostname file.

remove the line 127.0.1.1 localhost
your /etc/hosts file should look like this

127.0.0.1       hadoop
192.165.1.45    hadoop  hbase

Your /etc/hostname file should look like this

hadoop

like image 89
Balaji Avatar answered Nov 15 '22 12:11

Balaji