Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created on
09-17-2024
07:39 AM
- last edited on
04-20-2026
11:25 PM
by
GrazittiAPI
Hello team,
My main work is dependent on HBase Data.
I have Source (RHEL 7 CDH cluster) and Destination (RHEL 9 Open-Source Cluster self-managed cluster)
RHEL 9 Open-Source Cluster Conf:
Please give me a detailed information sir. Really appreciate it.
Thanks,
Srikanth
Created 09-17-2024 08:31 AM
Looking forward for the detailed information. Thanks
Created 09-18-2024 11:48 AM
Manual snapshots copying is the only way forward as you have security and compatibility issues between the clusters.
Kindly try to follow below steps -
Create Snapshot Operation
$ hbase shell
hbase> snapshot '<TABLE_NAME>', '<SNAPSHOT_NAME>'
$ major_compact '<TABLE_NAME>'
hdfs dfs -get /hbase/data/.hbase-snapshot/ /tmp/dir
hdfs dfs -get /hbase/data/archive/ /tmp/dir2
Restore operation
cd /tmp
hdfs dfs -copyFromLocal dir /hbase/data/.hbase-snapshot
hdfs dfs -copyFromLocal dir2 /hbase/archive/data/default
Note: "default" is a namespace name on which newly created tables are placed if you don't specify a custom namespace.
Make sure, the directories are created in HDFS. the path should look like this after copying:
/hbase/archive/data/<Namespace>/<TABLE_NAME>/<hfile1>
/hbase/archive/data/<Namespace>/<TABLE_NAME>/<hfile2>
...
Hbase shell
hbase:001:0> list_snapshots
hbase> clone_snapshot '<SNAPSHOT_NAME>', '<TABLE_NAME_NEW>'