Ambari中配置hbase:
Security
Enable Authentication :Simple
Enable Authorization: off ==>启动
重起整个系统,工作正常,
[[email protected]~]# sudo -u hbase hbase shell
SLF4J:Class path contains multiple SLF4J bindings.
SLF4J:Found binding in[jar:file:/usr/hdp/2.3.4.0-3485/hbase/lib/phoenix-4.6.0-HBase-1.1-client.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J:Found binding in[jar:file:/usr/hdp/2.3.4.0-3485/hbase/lib/phoenix-server-4.6.0-HBase-1.1-runnable.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J:Found binding in[jar:file:/usr/hdp/2.3.4.0-3485/hbase/lib/slf4j-log4j12-1.7.10.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J:Found binding in[jar:file:/usr/hdp/2.3.4.0-3485/hadoop/lib/slf4j-log4j12-1.7.10.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J:Found binding in[jar:file:/usr/hdp/2.3.4.0-3485/zookeeper/lib/slf4j-log4j12-1.6.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J:See http://www.slf4j.org/codes.html#multiple_bindings for anexplanation.
HBaseShell; enter ‘help<RETURN>‘ for list of supported commands.
Type"exit<RETURN>" to leave the HBase Shell
Version1.1.2.2.3.4.0-3485, ra2b7fd38f4dcca6eb81f99b5d37b2ea3beeef09e, WedDec 16 03:49:28 UTC 2015
hbase(main):001:0>list
TABLE
CPSPHOENIXTESTDEMO
MYPHONELIST2
SIWEB_IDX
SYSTEM.CATALOG
SYSTEM.FUNCTION
SYSTEM.SEQUENCE
SYSTEM.STATS
TestTable
ambarismoketest
resttesttable
10row(s) in 0.2770 seconds
=>["CPSPHOENIXTESTDEMO", "MYPHONELIST2","SIWEB_IDX", "SYSTEM.CATALOG", "SYSTEM.FUNCTION","SYSTEM.SEQUENCE", "SYSTEM.STATS",
"TestTable","ambarismoketest", "resttesttable"]
然后,设回到
Enable Authorization: off
重起整个系统,系统状态报告没有问题,但是
hbase(main):004:0* [[email protected] ~]# hbase shell
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/usr/hdp/2.3.4.0-3485/hbase/lib/phoenix-4.6.0-HBase-1.1-client.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/usr/hdp/2.3.4.0-3485/hbase/lib/phoenix-server-4.6.0-HBase-1.1-runnable.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/usr/hdp/2.3.4.0-3485/hbase/lib/slf4j-log4j12-1.7.10.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/usr/hdp/2.3.4.0-3485/hadoop/lib/slf4j-log4j12-1.7.10.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/usr/hdp/2.3.4.0-3485/zookeeper/lib/slf4j-log4j12-1.6.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
HBase Shell; enter ‘help<RETURN>‘ for list of supported commands.
Type "exit<RETURN>" to leave the HBase Shell
Version 1.1.2.2.3.4.0-3485, ra2b7fd38f4dcca6eb81f99b5d37b2ea3beeef09e, Wed Dec 16 03:49:28 UTC 2015
hbase(main):001:0> list
TABLE
at org.apache.hadoop.hbase.master.HMaster.checkInitialized(HMaster.java:2325)
at org.apache.hadoop.hbase.master.MasterRpcServices.getTableDescriptors(MasterRpcServices.java:849)
at org.apache.hadoop.hbase.protobuf.generated.MasterProtos$MasterService$2.callBlockingMethod(MasterProtos.java:51063)
at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:2114)
at org.apache.hadoop.hbase.ipc.CallRunner.run(CallRunner.java:101)
at org.apache.hadoop.hbase.ipc.RpcExecutor.consumerLoop(RpcExecutor.java:130)
at org.apache.hadoop.hbase.ipc.RpcExecutor$1.run(RpcExecutor.java:107)
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.*‘
hbase> list ‘ns:.*‘
hbase(main):002:0>
241897 [RS_LOG_REPLAY_OPS-datanode1:16020-0] ERROR org.apache.hadoop.hbase.executor.EventHandler - Caught throwable while processing event RS_LOG_REPLAY java.lang.NoSuchFieldError: in at org.apache.hadoop.hbase.regionserver.wal.IndexedWALEditCodec$IndexKeyValueDecoder.parseCell(IndexedWALEditCodec.java:98) at org.apache.hadoop.hbase.regionserver.wal.IndexedWALEditCodec$IndexKeyValueDecoder.parseCell(IndexedWALEditCodec.java:85) at org.apache.hadoop.hbase.codec.BaseDecoder.advance(BaseDecoder.java:67) at org.apache.hadoop.hbase.regionserver.wal.WALEdit.readFromCells(WALEdit.java:247) at org.apache.hadoop.hbase.regionserver.wal.ProtobufLogReader.readNext(ProtobufLogReader.java:355) at org.apache.hadoop.hbase.regionserver.wal.ReaderBase.next(ReaderBase.java:104) at org.apache.hadoop.hbase.regionserver.wal.ReaderBase.next(ReaderBase.java:87) at org.apache.hadoop.hbase.wal.WALSplitter.getNextLogLine(WALSplitter.java:799) at org.apache.hadoop.hbase.wal.WALSplitter.splitLogFile(WALSplitter.java:325) at org.apache.hadoop.hbase.wal.WALSplitter.splitLogFile(WALSplitter.java:235) at org.apache.hadoop.hbase.regionserver.SplitLogWorker$1.exec(SplitLogWorker.java:104) at org.apache.hadoop.hbase.regionserver.handler.WALSplitterHandler.process(WALSplitterHandler.java:72) at org.apache.hadoop.hbase.executor.EventHandler.run(EventHandler.java:128) 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)