2

I have a Hbase table with only 1 column family(cf1) having 100 columns under it. I need to change cf1 to new column family(CF1).

In short i need to modify column family name. I have gone through the following link http://comments.gmane.org/gmane.comp.java.hadoop.hbase.user/30959 but of no use.

Thanks in Advance.

sandeep007
  • 348
  • 3
  • 16

1 Answers1

2

I think you should copy columns from family to family then delete old column family. If there was a hbase client api for that, it would do the same, i think. Because data written to hbase files contains column family name in it.

halil
  • 1,789
  • 15
  • 18
  • Thanks Halil. May i know how to copy data from 1 column family to another column family? – sandeep007 Jan 27 '16 at 18:53
  • 1
    I would do it by java api, but if your table is huge, for example bigger than 100gb, i think you can use hbase remote coprocessors to copy data in their region. This way data will not transferred over network to your client. – halil Jan 28 '16 at 13:20