hbase中list命令報錯

勿在浮沙築高臺LS發表於2016-12-15

hbase啟動正常之後輸入./hbase shell 然後輸入list就報yarn service is not running。
看後臺的日誌出現

2016-12-14 21:33:13,752 INFO  [main] http.HttpServer: Jetty bound to port 16010
2016-12-14 21:33:13,752 INFO  [main] mortbay.log: jetty-6.1.26
2016-12-14 21:33:14,464 INFO  [main] mortbay.log: Started SelectChannelConnector@0.0.0.0:16010
2016-12-14 21:33:14,466 INFO  [main] master.HMaster: hbase.rootdir=hdfs://lsmaster:9000/hbase, hbase.cluster.distributed=true
2016-12-14 21:33:14,521 INFO  [main] master.HMaster: Adding backup master ZNode /hbase/backup-masters/lsmaster,16000,1481779990983
2016-12-14 21:33:14,765 INFO  [lsmaster:16000.activeMasterManager] master.ActiveMasterManager: Deleting ZNode for /hbase/backup-masters/lsmaster,16000,1481779990983 from backup master directory
2016-12-14 21:33:14,783 INFO  [lsmaster:16000.activeMasterManager] master.ActiveMasterManager: Registered Active Master=lsmaster,16000,1481779990983
2016-12-14 21:33:14,940 INFO  [master/lsmaster/192.168.13.129:16000] zookeeper.RecoverableZooKeeper: Process identifier=hconnection-0x7107b402 connecting to ZooKeeper ensemble=lsmaster:2181,liuqislave1:2181,liyanslave2:2181
2016-12-14 21:33:14,966 INFO  [master/lsmaster/192.168.13.129:16000] zookeeper.ZooKeeper: Initiating client connection, connectString=lsmaster:2181,liuqislave1:2181,liyanslave2:2181 sessionTimeout=90000 watcher=hconnection-0x7107b4020x0, quorum=lsmaster:2181,liuqislave1:2181,liyanslave2:2181, baseZNode=/hbase
2016-12-14 21:33:14,984 INFO  [master/lsmaster/192.168.13.129:16000-SendThread(lsmaster:2181)] zookeeper.ClientCnxn: Opening socket connection to server lsmaster/192.168.13.129:2181. Will not attempt to authenticate using SASL (unknown error)
2016-12-14 21:33:14,990 INFO  [master/lsmaster/192.168.13.129:16000-SendThread(lsmaster:2181)] zookeeper.ClientCnxn: Socket connection established to lsmaster/192.168.13.129:2181, initiating session
2016-12-14 21:33:15,013 INFO  [master/lsmaster/192.168.13.129:16000-SendThread(lsmaster:2181)] zookeeper.ClientCnxn: Session establishment complete on server lsmaster/192.168.13.129:2181, sessionid = 0x5900f84b4d0000, negotiated timeout = 90000
2016-12-14 21:33:15,145 INFO  [lsmaster:16000.activeMasterManager] util.FSUtils: Waiting for dfs to exit safe mode...
2016-12-14 21:33:15,162 INFO  [master/lsmaster/192.168.13.129:16000] regionserver.HRegionServer: ClusterId : 308eda38-0040-4309-be38-3795eb075dc6
2016-12-14 21:33:25,151 INFO  [lsmaster:16000.activeMasterManager] util.FSUtils: Waiting for dfs to exit safe mode...
2016-12-14 21:33:35,165 INFO  [lsmaster:16000.activeMasterManager] util.FSUtils: Waiting for dfs to exit safe mode...
2016-12-14 21:33:45,167 INFO  [lsmaster:16000.activeMasterManager] util.FSUtils: Waiting for dfs to exit safe mode...
2016-12-14 21:33:55,171 INFO  [lsmaster:16000.activeMasterManager] util.FSUtils: Waiting for dfs to exit safe mode...
2016-12-14 21:34:05,176 INFO  [lsmaster:16000.activeMasterManager] util.FSUtils: Waiting for dfs to exit safe mode...
2016-12-14 21:34:15,177 INFO  [lsmaster:16000.activeMasterManager] util.FSUtils: Waiting for dfs to exit safe mode...
2016-12-14 21:34:25,183 INFO  [lsmaster:16000.activeMasterManager] util.FSUtils: Waiting for dfs to exit safe mode...
2016-12-14 21:34:35,184 INFO  [lsmaster:16000.activeMasterManager] util.FSUtils: Waiting for dfs to exit safe mode...
2016-12-14 21:34:45,191 INFO  [lsmaster:16000.activeMasterManager] util.FSUtils: Waiting for dfs to exit safe mode...
2016-12-14 21:34:55,193 INFO  [lsmaster:16000.activeMasterManager] util.FSUtils: Waiting for dfs to exit safe mode...
2016-12-14 21:35:05,198 INFO  [lsmaster:16000.activeMasterManager] util.FSUtils: Waiting for dfs to exit safe mode...
2016-12-14 21:35:15,200 INFO  [lsmaster:16000.activeMasterManager] util.FSUtils: Waiting for dfs to exit safe mode...

hadoop一直處於安全模式下,於是百度搜停止安全模式的命令
./hadoop dfsadmin safemode leave 停止安全模式,但是剛剛停止完輸入
./hadoop dfsadmin safemode get
發現hadoop還是在安全模式下,於是登入https://lsmaster:50070/然後檢視安全模式時間,這個時候我在等待它自動退出安全模式。

相關文章