hbase(main):003:0> create 'test','cf'
成都創(chuàng)新互聯(lián)公司專業(yè)為企業(yè)提供唐縣網(wǎng)站建設(shè)、唐縣做網(wǎng)站、唐縣網(wǎng)站設(shè)計(jì)、唐縣網(wǎng)站制作等企業(yè)網(wǎng)站建設(shè)、網(wǎng)頁設(shè)計(jì)與制作、唐縣企業(yè)網(wǎng)站模板建站服務(wù),10余年唐縣做網(wǎng)站經(jīng)驗(yàn),不只是建網(wǎng)站,更提供有價(jià)值的思路和整體網(wǎng)絡(luò)服務(wù)。
ERROR: org.apache.hadoop.hbase.ipc.ServerNotRunningYetException: Server is not running yet
at org.apache.hadoop.hbase.ipc.RpcServer$Handler.run(RpcServer.java:1879)
查看../hbase0962/logs/目錄下的日志文件,發(fā)現(xiàn)錯(cuò)誤信息為
[hadoop@master hbase0962]$ tail logs/hbase-hadoop-master-master.gzcd.com.log
2015-04-27 14:08:53,330 INFO [master:master:60000] util.FSUtils: Waiting for dfs to exit safe mode...
2015-04-27 14:09:03,336 INFO [master:master:60000] util.FSUtils: Waiting for dfs to exit safe mode...
2015-04-27 14:09:13,345 INFO [master:master:60000] util.FSUtils: Waiting for dfs to exit safe mode...
2015-04-27 14:09:23,355 INFO [master:master:60000] util.FSUtils: Waiting for dfs to exit safe mode...
這是由于hadoop啟動(dòng)是還處在安全模式造成的
[hadoop@master logs]$ cd /app/hadoop/hadoop220/bin/hadoop dfsadmin -safemode get
-bash: cd: /app/hadoop/hadoop220/bin/hadoop: Not a directory
[hadoop@master logs]$ /app/hadoop/hadoop220/bin/hadoop dfsadmin -safemode get
DEPRECATED: Use of this script to execute hdfs command is deprecated.
Instead use the hdfs command for it.
Safe mode is ON
關(guān)閉安全模式即可:
[hadoop@master logs]$ /app/hadoop/hadoop220/bin/hadoop dfsadmin -safemode leave
DEPRECATED: Use of this script to execute hdfs command is deprecated.
Instead use the hdfs command for it.
Safe mode is OFF
重新進(jìn)入hbase shell ,再次執(zhí)行命令,不再報(bào)錯(cuò)!
本文參考鏈接:http://www.2cto.com/database/201304/206119.html