我添加的数据在table1- tab_info 为什么看不到数据呢
[mw_shl_code=shell,true][hadoop@master conf]$ hadoop fs -ls /hbase/data/degfault
^[[Als: `/hbase/data/degfault': No such file or directory
[hadoop@master conf]$ hadoop fs -ls /hbase/data/default
Found 1 items
drwxr-xr-x - hadoop supergroup 0 2016-12-20 16:38 /hbase/data/default/table1
[hadoop@master conf]$ hadoop fs -ls /hbase/data/default/table1
Found 3 items
drwxr-xr-x - hadoop supergroup 0 2016-12-20 16:38 /hbase/data/default/table1/.tabledesc
drwxr-xr-x - hadoop supergroup 0 2016-12-20 16:38 /hbase/data/default/table1/.tmp
drwxr-xr-x - hadoop supergroup 0 2016-12-20 16:38 /hbase/data/default/table1/6d3a2de12a4e132ad3bab30c6098c8d9
[hadoop@master conf]$ hadoop fs -ls /hbase/data/default/table1/6d3a2de12a4e132ad3bab30c6098c8d9
Found 5 items
-rw-r--r-- 2 hadoop supergroup 41 2016-12-20 16:38 /hbase/data/default/table1/6d3a2de12a4e132ad3bab30c6098c8d9/.regioninfo
drwxr-xr-x - hadoop supergroup 0 2016-12-20 16:38 /hbase/data/default/table1/6d3a2de12a4e132ad3bab30c6098c8d9/recovered.edits
drwxr-xr-x - hadoop supergroup 0 2016-12-20 16:38 /hbase/data/default/table1/6d3a2de12a4e132ad3bab30c6098c8d9/tab1_add
drwxr-xr-x - hadoop supergroup 0 2016-12-20 16:38 /hbase/data/default/table1/6d3a2de12a4e132ad3bab30c6098c8d9/tab1_id
drwxr-xr-x - hadoop supergroup 0 2016-12-20 16:38 /hbase/data/default/table1/6d3a2de12a4e132ad3bab30c6098c8d9/tab1_info[/mw_shl_code]
[hadoop@master conf]$ hadoop fs -ls /hbase/data/default/table1/6d3a2de12a4e132ad3bab30c6098c8d9/tab1_info 是空的。
建表:
[mw_shl_code=shell,true]hbase(main):006:0> create 'table1', 'tab1_id', 'tab1_add', 'tab1_info'
0 row(s) in 1.3100 seconds
=> Hbase::Table - table1
hbase(main):007:0> list
TABLE
table1
1 row(s) in 0.0080 seconds
=> ["table1"]
hbase(main):008:0> describe 'table1'
Table table1 is ENABLED
table1
COLUMN FAMILIES DESCRIPTION
{NAME => 'tab1_add', BLOOMFILTER => 'ROW', VERSIONS => '1', IN_MEMORY => 'false', KEEP_DELETED_CELLS => 'FALSE', DATA_BLOCK_ENCODING => 'NONE', TTL => 'FOREVER', COMPRESSION => 'NONE', MIN_VE
RSIONS => '0', BLOCKCACHE => 'true', BLOCKSIZE => '65536', REPLICATION_SCOPE => '0'}
{NAME => 'tab1_id', BLOOMFILTER => 'ROW', VERSIONS => '1', IN_MEMORY => 'false', KEEP_DELETED_CELLS => 'FALSE', DATA_BLOCK_ENCODING => 'NONE', TTL => 'FOREVER', COMPRESSION => 'NONE', MIN_VER
SIONS => '0', BLOCKCACHE => 'true', BLOCKSIZE => '65536', REPLICATION_SCOPE => '0'}
{NAME => 'tab1_info', BLOOMFILTER => 'ROW', VERSIONS => '1', IN_MEMORY => 'false', KEEP_DELETED_CELLS => 'FALSE', DATA_BLOCK_ENCODING => 'NONE', TTL => 'FOREVER', COMPRESSION => 'NONE', MIN_V
ERSIONS => '0', BLOCKCACHE => 'true', BLOCKSIZE => '65536', REPLICATION_SCOPE => '0'}
3 row(s) in 0.1040 seconds
hbase(main):009:0> put 'table1', 'key0ne', 'tab1_info:age', '24'
0 row(s) in 0.1290 seconds
hbase(main):010:0> list
TABLE
table1
1 row(s) in 0.0090 seconds
=> ["table1"]
hbase(main):011:0> scan 'table1'
ROW COLUMN+CELL
key0ne column=tab1_info:age, timestamp=1482223307185, value=24
1 row(s) in 0.0540 seconds
hbase(main):012:0> put 'table1', 'key0ne', 'tab1_info:birthday', '1987-06-17'
0 row(s) in 0.0130 seconds
hbase(main):013:0> scan 'table1'
ROW COLUMN+CELL
key0ne column=tab1_info:age, timestamp=1482223307185, value=24
key0ne column=tab1_info:birthday, timestamp=1482223364986, value=1987-06-17
1 row(s) in 0.0100 seconds
[/mw_shl_code] |