如何更改hbase表中的列族的名称 [英] how to change the name of column family in the hbase table

查看:1891
本文介绍了如何更改hbase表中的列族的名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个只有1列族(cf1)的Hbase表格,下面有100列。我需要将cf1更改为新的列族(CF1)。

总之,我需要修改列名称。我已经通过以下链接 http://comments.gmane。 org / gmane.comp.java.hadoop.hbase.user / 30959 ,但没用。



感谢您的提前。

解决方案

从家庭到家庭然后删除旧列家庭。如果有一个hbase客户端的API,我认为它也会这样做。因为写入到hbase文件的数据包含列名称。


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.

解决方案

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.

这篇关于如何更改hbase表中的列族的名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆