hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Marc Spaggiari <jean-m...@spaggiari.org>
Subject Re: presplitting using binary keys
Date Sat, 04 Oct 2014 11:46:40 GMT
Hi Serega, you can not do it that way. The alter will not read this
parameter. This should be passed to the create table command instead, or
you need to you the split command to split a single region.

JM

2014-10-04 7:41 GMT-04:00 Serega Sheypak <serega.sheypak@gmail.com>:

> Hi, I did pick long as a key for  hbase table row.
> So I see hex string representing my long key in OLD table.
> I want to use these split keys as pre-splits for a NEW table which is
> EMPTY.
> I would like to run a script using hbase shell:
>
>
> disable 'my_new_empty_table_with_long_key'
>
> alter 'my_table_my_new_empty_table_with_long_keywith_long_jey', NAME =>
> 's',SPLITS =>
> ["\\x00\\x00\\x00\\x12d\\xF47\\x9F","\\x00\\x00\\x00\\x12e\\x0D\\xB1N"]
>
> enable 'my_new_empty_table_with_long_key'
> exit
>
> I run it but nothing happens, splits do not appear. in new table. I ca't
> find any errors in region server log which hosts default single region of
>  table.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message