hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vincent Barat <vincent.ba...@ubikod.com>
Subject Re: Renaming a column ?
Date Fri, 27 Nov 2009 15:31:31 GMT
Thanks a lot for your answer.

I was actually looking for a way to change the WHOLE table at a 
time, and not just one row.

I ended by writing some Java code scanning all my rows to do the same.

:-)


Lars George a écrit :
> You simply have to do a
> 
> hbase> get 'tablename', 'rowkey', {COLUMN => 'colfam:oldqualifier'}
> value
> hbase> put 'tablename', 'rowkey', 'colfam:newqualifier', 'value'
> hbase> deleteall 'tablename', 'rowkey', 'colfam:oldqualifier'
> 
> Do a hbase> help to get all the gory details.
> 
> Lars
> 
> Vincent Barat schrieb:
>> I was looking for a shell sample, if it is possible to do this with 
>> the shell.
>>
>> Lars George a écrit :
>>> Hi Vincent,
>>>
>>> You will have to store the data under the new column qualifier and 
>>> delete the old. Are you looking for a shell or API example?
>>>
>>> Lars
>>>
>>> Vincent Barat schrieb:
>>>> Hi,
>>>>
>>>> I'm looking for a simple way to rename a column (not a column 
>>>> family). Is there any ?
>>>
>>>
> 
> 

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