Backup HBase tables

Follow these steps to back up atlas_janus table.

  1. Go to HBase Shell.
  2. Disable atlas_janus and ATLAS_ENTITY_AUDIT_EVENTS tables.
  3. Create a snapshot of the atlas_janus and ATLAS_ENTITY_AUDIT_EVENTS HBase tables.
  4. (Optional step) If the backup needs to be preserved on the local file system, then use the additional command to copy it locally.
    hbase org.apache.hadoop.hbase.snapshot.ExportSnapshot -snapshot 'atlas-janus-backup' 
    -copy-to /path/to/backup/location
    The above steps can be performed using the following commands from HBase shell.
    > disable 'atlas_janus'
    > snapshot 'atlas_janus', 'atlas-janus-backup'
    > enable 'atlas_janus'
    > exit
    > disable 'ATLAS_ENTITY_AUDIT_EVENTS'
    > snapshot 'ATLAS_ENTITY_AUDIT_EVENTS','ATLAS_ENTITY_AUDIT_EVENTS-backup'
    > enable 'ATLAS_ENTITY_AUDIT_EVENTS'
    > exit