您好,登錄后才能下訂單哦!
hbase(main):003:0> create 'test','cf'
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/目錄下的日志文件,發現錯誤信息為
[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啟動是還處在安全模式造成的
[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
關閉安全模式即可:
[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
重新進入hbase shell ,再次執行命令,不再報錯!
本文參考鏈接:http://www.2cto.com/database/201304/206119.html
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。