简体   繁体   中英

Rename Row-Key In Hbase

I have a table customer in production, Now I want to rename the rowkey from 'timestamp' to 'SSN timestamp'. How can i do the same? Is there any alter command for changing the existing row keys or is there any other way to do ?

Hbase data saved in hdfs. Since hdfs blocks cannot be updated, you cannot update cells in hbase. Update is one delete and one new insert. You can write a map reduce to scan, delete and insert all rows. After that, do a major compaction to clean marked rows for delete.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM