执行HBase shell时出现ERROR: org.apache.hadoop.hbase.ipc.ServerNotRunningYetException: Server is not runni

不多说,直接上干货!

[kfk@bigdata-pro01 bin]$ jps
1968 NameNode
2385 ResourceManager
2259 JournalNode
2996 HMaster
2071 DataNode
3095 HRegionServer
2490 NodeManager
3133 Jps
1807 QuorumPeerMain
[kfk@bigdata-pro01 bin]$ hostname
bigdata-pro01.kfk.com
[kfk@bigdata-pro01 bin]$ 
[kfk@bigdata-pro01 bin]$ cd ..
[kfk@bigdata-pro01 hbase-0.98.6-cdh5.3.0]$ bin/hbase shell
2018-06-16 10:19:47,747 INFO  [main] Configuration.deprecation: hadoop.native.lib is deprecated. Instead, use io.native.lib.available
HBase Shell; enter 'help<RETURN>' for list of supported commands.
Type "exit<RETURN>" to leave the HBase Shell
Version 0.98.6-cdh5.3.0, rUnknown, Tue Dec 16 19:18:44 PST 2014

hbase(main):001:0> list
TABLE                                                                                                                                                                                                            
2018-06-16 10:20:02,641 WARN  [main] util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable

ERROR: org.apache.hadoop.hbase.ipc.ServerNotRunningYetException: Server is not running yet
    at org.apache.hadoop.hbase.ipc.CallRunner.run(CallRunner.java:100)
    at org.apache.hadoop.hbase.ipc.FifoRpcScheduler$1.run(FifoRpcScheduler.java:74)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)

Here is some help for this command:
List all tables in hbase. Optional regular expression parameter could
be used to filter the output. Examples:

  hbase> list
  hbase> list 'abc.*'
  hbase> list 'ns:abc.*'

解决办法

[kfk@bigdata-pro01 modules]$ cd hadoop-2.6.0/bin/
[kfk@bigdata-pro01 bin]$ ./hadoop dfsadmin -safemode leave   
DEPRECATED: Use of this script to execute hdfs command is deprecated.
Instead use the hdfs command for it.

18/06/16 10:21:27 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
Safe mode is OFF in bigdata-pro01.kfk.com/192.168.80.151:9000
Safe mode is OFF in bigdata-pro02.kfk.com/192.168.80.152:9000

成功!

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值