Backup HBase tables

Follow these steps to back up atlas_titan 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-titan-backup' 
    -copy-to /path/to/backup/location
    The above steps can be performed using the following commands from HBase shell.
    > disable 'atlas_titan'
    > snapshot 'atlas_titan', 'atlas-titan-backup'
    > enable 'atlas_titan'
    > exit
    > disable 'ATLAS_ENTITY_AUDIT_EVENTS'
    > snapshot 'ATLAS_ENTITY_AUDIT_EVENTS','ATLAS_ENTITY_AUDIT_EVENTS-backup'
    > enable 'ATLAS_ENTITY_AUDIT_EVENTS'
    > exit