温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

hbase shell 执行创建表时错误

发布时间:2020-08-03 19:24:45 来源:网络 阅读:7943 作者:caterpillarchen 栏目:关系型数据库

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





向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI