Connecting to 10.62.242.107:22...
Connection established.
To escape to local shell, press 'Ctrl+Alt+]'.
Last login: Mon Aug 22 16:19:39 2016 from 10.62.250.107
Authorized users only.All activities will be monitored and reported.
[root@BDC3 ~]# hbase shell
2016-08-24 09:38:30,713 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.98.0.2.1.1.0-385-hadoop2, re7b81b02bc8ba00573e009241b8e15848ae8bfb7, Wed Apr 16 15:23:13 PDT 2014
hbase(main):001:0> status
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/app/hbase/lib/slf4j-log4j12-1.6.4.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/app/hadoop/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.
22 servers, 0 dead, 1613.2273 average load
hbase(main):002:0> version
0.98.0.2.1.1.0-385-hadoop2, re7b81b02bc8ba00573e009241b8e15848ae8bfb7, Wed Apr 16 15:23:13 PDT 2014
hbase(main):003:0> list 'mem.*'
TABLE
member
1 row(s) in 0.6050 seconds
=> ["member"]
hbase(main):004:0> describe 'mem.*'
ERROR: Illegal character code:42, <*> at 4. User-space table qualifiers can only contain 'alphanumeric characters': i.e. [a-zA-Z_0-9-.]: mem.*
Here is some help for this command:
Describe the named table. For example:
hbase> describe 't1'
hbase(main):005:0> describe 'member'
DESCRIPTION ENABLED
'member', {NAME => 'address', DATA_BLOCK_ENCODING => 'NONE', BLOOMFILTER => 'ROW', REPLICATION_SCOPE => '0', VERSIONS => ' true
1', COMPRESSION => 'NONE', MIN_VERSIONS => '0', TTL => '2147483647', KEEP_DELETED_CELLS => 'false', BLOCKSIZE => '65536',
IN_MEMORY => 'false', BLOCKCACHE => 'true'}, {NAME => 'info', DATA_BLOCK_ENCODING => 'NONE', BLOOMFILTER => 'ROW', REPLICA
TION_SCOPE => '0', VERSIONS => '1', COMPRESSION => 'NONE', MIN_VERSIONS => '0', TTL => '2147483647', KEEP_DELETED_CELLS =>
'false', BLOCKSIZE => '65536', IN_MEMORY => 'false', BLOCKCACHE => 'true'}
1 row(s) in 0.4090 seconds
hbase(main):006:0>
hbase(main):007:0* scan 'member'
ROW COLUMN+CELL
scutshuxue column=address:city, timestamp=1471948510192, value=hangzhou
scutshuxue column=address:contry, timestamp=1471948508849, value=china
scutshuxue column=address:province, timestamp=1471948508893, value=zhejiang
scutshuxue column=info:age, timestamp=1471948637784, value=99
scutshuxue column=info:age1, timestamp=1471949539893, value=\x00\x00\x00\x00\x00\x00\x00\x03
scutshuxue column=info:birthday, timestamp=1471948508783, value=1987-06-17
scutshuxue column=info:company, timestamp=1471948508821, value=alibaba
xiaofeng column=address:city, timestamp=1471948547875, value=jieyang
xiaofeng column=address:contry, timestamp=1471948547796, value=china
xiaofeng column=address:province, timestamp=1471948547835, value=guangdong
xiaofeng column=address:town, timestamp=1471948548845, value=xianqiao
xiaofeng column=info:birthday, timestamp=1471948547633, value=1987-4-17
xiaofeng column=info:company, timestamp=1471948547755, value=alibaba
xiaofeng column=info:favorite, timestamp=1471948547690, value=movie
2 row(s) in 0.0870 seconds
hbase(main):008:0> count 'member'
2 row(s) in 0.0220 seconds
=> 2
hbase(main):009:0> truncate 'member'
Truncating 'member' table (it may take a while):
- Disabling table...
- Dropping table...
- Creating table...
0 row(s) in 3.8240 seconds
hbase(main):010:0> count 'member'
0 row(s) in 0.0350 seconds
=> 0
hbase(main):011:0> scan 'member'
ROW COLUMN+CELL
0 row(s) in 0.0130 seconds
hbase(main):012:0> scan 'member'
ROW COLUMN+CELL
0 row(s) in 0.0130 seconds
hbase(main):013:0> describe 'member'
DESCRIPTION ENABLED
'member', {NAME => 'address', DATA_BLOCK_ENCODING => 'NONE', BLOOMFILTER => 'ROW', REPLICATION_SCOPE => '0', COMPRESSION = true
> 'NONE', VERSIONS => '1', TTL => '2147483647', MIN_VERSIONS => '0', KEEP_DELETED_CELLS => 'false', BLOCKSIZE => '65536',
IN_MEMORY => 'false', BLOCKCACHE => 'true'}, {NAME => 'info', DATA_BLOCK_ENCODING => 'NONE', BLOOMFILTER => 'ROW', REPLICA
TION_SCOPE => '0', COMPRESSION => 'NONE', VERSIONS => '1', TTL => '2147483647', MIN_VERSIONS => '0', KEEP_DELETED_CELLS =>
'false', BLOCKSIZE => '65536', IN_MEMORY => 'false', BLOCKCACHE => 'true'}
1 row(s) in 0.0510 seconds
hbase(main):014:0>
hbase_2_good
最新推荐文章于 2024-09-02 21:11:04 发布