You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by Manuel de Ferran <ma...@gmail.com> on 2011/08/22 12:42:51 UTC

How to move regions inherited from a 0.20.6

Greetings,

we recently upgraded to 0.90 from 0.20.6 on our dev server. As mentioned in
the not-so-quick guide, regions naming has changed.

The problem is that we're not able to move older regions using the hbase
shell since we have not any hash suffix for them.

Could you confirm that ? Any workaround ?

Regards

Re: How to move regions inherited from a 0.20.6

Posted by Jean-Daniel Cryans <jd...@apache.org>.
You have to use the old encoded name which is only available in the
.META. table. For example (sorry for the probably bad formatting):

hbase(main):004:0> get '.META.', 'some_table,31905260,1273870975233'
COLUMN                                                           CELL
 info:regioninfo
timestamp=1273870975682, value=REGION => {NAME =>
'some_table,31905260,1273870975233', STARTKEY => '31905260', ENDKEY =>
'33237012', ENCODED => 88822279, TABLE => {{NAME => 'some_table',
FAMILIES => [{NAME => 'default', BLOOMFILTER => 'NONE', COMPRESSION =>
'LZO', VERSIONS => '3', TTL => '2147483647', BLOCKSIZE => '65536',
IN_MEMORY => 'false', BLOCKCACHE => 'true'}]}}

In there you can see ENCODED => 88822279, that's what you need to pass
to the move command.

J-D

On Mon, Aug 22, 2011 at 3:42 AM, Manuel de Ferran
<ma...@gmail.com> wrote:
> Greetings,
>
> we recently upgraded to 0.90 from 0.20.6 on our dev server. As mentioned in
> the not-so-quick guide, regions naming has changed.
>
> The problem is that we're not able to move older regions using the hbase
> shell since we have not any hash suffix for them.
>
> Could you confirm that ? Any workaround ?
>
> Regards
>