Hbase教程
1、启动Hbase Shell
$ bin/hbase shell SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [jar:file:/app/prog/hbase-1.0.1.1/lib/slf4j-log4j12-1.7.7.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/app/prog/hadoop-2.4.1/share/hadoop/common/lib/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation. SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory] HBase Shell; enter 'help<RETURN>' for list of supported commands. Type "exit<RETURN>" to leave the HBase Shell Version 1.0.1.1, re1dbf4df30d214fca14908df71d038081577ea46, Sun May 17 12:34:26 PDT 2015 hbase(main):001:0>
2、查看Hbase 版本
hbase(main):001:0> version 1.0.1.1, re1dbf4df30d214fca14908df71d038081577ea46, Sun May 17 12:34:26 PDT 2015
3、查看当前用户
hbase(main):002:0> whoami root (auth:SIMPLE) groups: k6k44、查看当前状态
hbase(main):003:0> status 2 servers, 2 dead, 1121.5000 average load
5、多条命令用';'分隔,最后一条命令不能加';'
hbase(main):001:0> whoami;status root (auth:SIMPLE) groups: k6k4 2 servers, 2 dead, 1121.5000 average load