How to copy an existing hbase table

cloud, hadoop, hbase

Solution

Assuming you want to copy the table on the same cluster you can use HBase snapshots in the `hbase shell` you can

snapshot 'sourceTable', 'sourceTable-snapshot'
clone_snapshot 'sourceTable-snapshot', 'newTable'

Problem

I have a Hbase table X and I want to create an exact copy of it and name it Y. Could someone let me know how it is possible? Thanks

Original source