hbase(main):004:0> help move
Here is some help for this command:
Move a region. Optionally specify target regionserver else we choose one
at random. NOTE: You pass the encoded region name, not the region name so
this command is a little different to the others. The encoded region name
is the hash suffix on region names: e.g. if the region name were
TestTable,0094429456,1289497600452.527db22f95c8a9e0116f0cc13c680396. then
the encoded region name portion is 527db22f95c8a9e0116f0cc13c680396
A server name is its host, port plus startcode. For example:
host187.example.com,60020,1289493121758
Examples:
hbase> move 'ENCODED_REGIONNAME'
hbase> move 'ENCODED_REGIONNAME', 'SERVER_NAME'
1条答案
按热度按时间r8uurelv1#
您可以创建一个包含所需区域数的新表。然后在使用move命令填充表之前执行手动区域平衡,将区域放置到所需的服务器。请参阅帮助
或者您可以尝试使用hbaseadmin来执行此操作,请参阅方法move。