Hbase solves bugs

Start the hbase cluster today, and the error 
hbase(main):001:0> list
TABLE                                                                                                                                

ERROR: org.apache.hadoop.hbase.ipc.ServerNotRunningYetException: Server is not running yet
at org.apache.hadoop.hbase.ipc. RpcServer$Handler.run(RpcServer.java:1841)

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.* '
So go to check the log
more hbase-root-master-hadoop1.log
There are more logs, if you want to check the log of the day,
you can use /2015-05-23 (time of the day)
2015-05-23 17:00:17,542 INFO  [master:hadoop1:60000] catalog.CatalogTracker: Failed verification of hbase:meta,,1 at address=hadoop3,60020,1431732531994, exception=org.apache.hadoop.hbase.NotServingRegionException: org.apache.hadoop.hbase.NotServingRegionException: Region is not online: 1588230740
        at org.apache.hadoop.hbase.regionserver.HRegionServer.getRegionByEncodedName(HRegionServer.java:2576)
        at org.apache.hadoop.hbase.regionserver.HRegionServer.getRegion(HRegionServer.java:3949)
        at org.apache.hadoop.hbase.regionserver.HRegionServer.getRegionInfo(HRegionServer.java:3366)
        at org.apache.hadoop.hbase.protobuf.generated.AdminProtos$AdminService$2.callBlockingMethod(AdminProtos.java:19789)
        at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:2146)
        at org.apache.hadoop.hbase.ipc.RpcServer$Handler.run(RpcServer.java:1851)

After checking, the reason turned out to be hadoop The reason why the cluster is in safe mode
Execute the command
hadoop dfsadmin -safemode leave
and restart habase

[root@hadoop1 logs]# hbase shell
2015-05-23 17:14:45,609 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.96.0-hadoop2, r1531434, Fri Oct 11 15:28:08 PDT 2013

hbase(main):001:0> list
TABLE
gmail
test
2 row(s) in 4.1420 seconds

=> ["gmail", "test"]
problem solving
-safemode enter|leave|get|wait safemode maintenance command. Safe mode is a state of Namenode, in this state
1. Does not accept changes to the namespace (read-only)
2. Does not copy or delete blocks
Namenode will automatically enter safe mode at startup, when the minimum percentage of configured blocks is satisfied When the minimum number of replicas condition is met, it will automatically leave safe mode. Safe Mode can be entered manually, but in this case, Safe Mode must also be manually turned off.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326431520&siteId=291194637