3)常见问题
日志在:
.../hbase-0.92.1/logs/hbase-cl-master-thinkpad-zh.log
如果发现日志中出现:
... WARN org.apache.hadoop.hbase.master.AssignmentManager: Unable to find a viable location to assign region -ROOT-,,0.70236052
则后面无法创建表(create 'tablename' 会无限期等待)
cl@thinkpad-zh:/home/hbase-0.92.1/bin$ ./start-hbase.sh
starting master, logging to /home/hbase-0.92.1/bin/../logs/hbase-cl-master-thinkpad-zh.out
4)运行hbase shell命令工具
cl@thinkpad-zh:/home/hbase-0.92.1/bin$ ./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
5)创建表
hbase(main):001:0> create 'my_first_table', 'col1', 'col2'
0 row(s) in 1.6050 seconds
hbase(main):002:0>
hbase(main):002:0> list 'my_first_table'
TABLE
my_first_table
1 row(s) in 0.0150 seconds