Split拆分
说明:
Split entire table or pass a region to split individual region. With the
second parameter, you can specify an explicit split key for the region.
Examples:
split 'tableName'
split 'namespace:tableName'
split 'regionName' # format: 'tableName,startKey,id'
split 'tableName', 'splitKey'
split 'regionName', 'splitKey'
首先执行scan ‘hbase:meta’查看元数据,共有三条记录
hbase(main):001:0> scan 'hbase:meta'
ROW COLUMN+CELL
hbase:namespace,,15 column=info:regioninfo, timestamp=1500279250104, value={
00279203600.844a078 ENCODED => 844a078aa357b6e4bf848b42ce46a713, NAME => 'hb
aa357b6e4bf848b42ce ase:namespace,,1500279203600.844a078aa357b6e4bf848b42ce4
46a713. 6a713.', STARTKEY => '', ENDKEY => ''}
hbase:namespace,,15 column=info:seqnumDuringOpen, timestamp=1500279210909, v
00279203600.844a078 alue=\x00\x00\x00\x00\x00\x00\x00\x02
aa357b6e4bf848b42ce
46a713.
hbase:namespace,,15 column=info:server, timestamp=1500279210909, value=maste
00279203600.844a078 r:16020
aa357b6e4bf848b42ce
46a713.
hbase:namespace,,15 column=info:serverstartcode, timestamp=1500279210909, va
00279203600.844a078 lue=1500279162649
aa357b6e4bf848b42ce
46a713.
test,,1500293557739 column=info:regioninfo, timestamp=1500293644890, value={
.e686fd30012f1c4cb6 ENCODED => e686fd30012f1c4cb6d78a241d911202, NAME => 'te
d78a241d911202. st,,1500293557739.e686fd30012f1c4cb6d78a241d911202.', ST
ARTKEY => '', ENDKEY => ''}
test,,1500293557739 column=info:seqnumDuringOpen, timestamp=1500293644890, v
.e686fd30012f1c4cb6 alue=\x00\x00\x00\x00\x00\x00\x00\x02
d78a241d911202.
test,,1500293557739 column=info:server, timestamp=1500293644890, value=slave
.e686fd30012f1c4cb6 1:16020
d78a241d911202.
test,,1500293557739 column=info:serverstartcode, timestamp=1500293644890, va
.e686fd30012f1c4cb6 lue=1500279205588
d78a241d911202.
test1,,150028521182 column=info:regioninfo, timestamp=1500288301234, value={
0.ee4ccd1877cf2d579 ENCODED => ee4ccd1877cf2d5793b41f62a1552257, NAME => 'te
3b41f62a1552257.st1,,1500285211820.ee4ccd1877cf2d5793b41f62a1552257.', S
TARTKEY => '', ENDKEY => ''}
test1,,150028521182 column=info:seqnumDu