mercredi 9 décembre 2020

How to export HBase snapshot from MiniHBaseCluster with HBaseTestingUtility?

I am trying to create and export an HBase snapshot to a local(or remote) location with code for testing purpose.

For now I am using HBaseTestingUtility to start a MiniHBaseCluster and then create/load/snapshot tables.

However, I could not find a way to export an Snapshot for my integration test. I wonder is there a way to use org.apache.hadoop.hbase.snapshot.ExportSnapshot together with MiniHBaseCluster and export the snapshot I took in memory?

Aucun commentaire:

Enregistrer un commentaire