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
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 thishadoop
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With