hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Daniel Cryans <jdcry...@apache.org>
Subject Re: How to move regions inherited from a 0.20.6
Date Mon, 29 Aug 2011 18:28:06 GMT
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
<manuel.deferran@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
>

Mime
View raw message