Hbase Region的拆分和合并

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
  • 1
    点赞
  • 7
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值