hbase shell
官网:https://hbase.apache.org/book.html
$ ./bin/hbase shell
常见问题:
ERROR: org.apache.hadoop.hbase.PleaseHoldException: Master is initializing
at org.apache.hadoop.hbase.master.HMaster.checkInitialized(HMaster.java:2765)
at org.apache.hadoop.hbase.master.HMaster.createTable(HMaster.java:1744)
at org.apache.hadoop.hbase.master.MasterRpcServices.createTable(MasterRpcServices.java:592)
at org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos$MasterService$2.callBlockingMethod(MasterProtos.java)
at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:409)
at org.apache.hadoop.hbase.ipc.CallRunner.run(CallRunner.java:130)
at org.apache.hadoop.hbase.ipc.RpcExecutor$Handler.run(RpcExecutor.java:324)
at org.apache.hadoop.hbase.ipc.RpcExecutor$Handler.run(RpcExecutor.java:304)
2\
[main-EventThread] master.RegionServerTracker: RegionServer ephemeral node deleted, processing expiration [slave2,16020,1537891028153]
2018-09-25 11:59:49,263 INFO [main-EventThread] master.ServerManager: Master doesn’t enable ServerShutdownHandler during initialization, delay expiring server slave2,16020,1537891028153
2018-09-25 11:59:49,382 ERROR [RpcServer.default.FPBQ.Fifo.handler=28,queue=1,port=16000] master.MasterRpcServices: hbase.regionserver.wal.AbstractFSWAL.rollWriter(AbstractFSWAL.java:493)
at org.apache.hadoop.hbase.regionserver.wal.AsyncFSWAL.<init>(AsyncFSWAL.java:251)
at org.apache.hadoop.hbase.wal.AsyncFSWALProvider.createWAL(AsyncFSWALProvider.java:70)
at org.apache.hadoop.hbase.wal.AsyncFSWALProvider.createWAL(AsyncFSWALProvider.java:45)
at org.apache.hadoop.hbase.wal.AbstractFSWALProvider.getWAL(AbstractFSWALProvider.java:138)
at org.apache.hadoop.hbase.wal.AbstractFSWALProvider.getWAL(AbstractFSWALProvider.java:57)
at org.apache.hadoop.hbase.wal.WALFactory.getWAL(WALFactory.java:254)
at org.apache.hadoop.hbase.regionserver.HRegionServer.getWAL(HRegionServer.java:2064)
at org.apache.hadoop.hbase.regionserver.HRegionServer.buildServerLoad(HRegionServer.java:1290)
at org.apache.hadoop.hbase.regionserver.HRegionServer.tryRegionServerReport(HRegionServer.java:1172)
at org.apache.hadoop.hbase.regionserver.HRegionServer.run(HRegionServer.java:989)
at java.lang.Thread.run(Thread.java:748)
解决方案:
1,
2、
3、
总结:
问题二:
create ‘t1’, ‘f1’, ‘f2’, ‘f3’
NameError: undefined local variable or method `?t1?’ for main:Object
问题三:
http://master:60010/master-status 这个页面不能访问 报500等错误
最终解决方案:
http://master:50070/ 进入hdfs 页面管理
删除 /hbase/WALS 中所有文件 OK le
/hbase/oldWALS 中所有文件 OK le
或者执行命令:
hadoop fs -rm -R /hbase/WALS
hadoop fs -rm -R /hbase/oldWALS