Rename Row-Key to Hbase
I have a table client in production. Now I want to rename the rowkey from "timestamp" to "SSN timestamp". How can I do the same? Is there an alter command to change existing line keys, or is there another way?
+3
Neethu
source
to share
1 answer
Hbase data saved in hdf. Since hdfs blocks cannot be updated, you cannot update cells in hbase. An update is one delete and one new insert. You can write a map to reduce to scan, delete and insert all lines. Then do a large seal to clear the marked lines for deletion.
+3
ozhang
source
to share