How To Disable Backup of Elasticsearch?

Why You May Want To Disable Backups of Elasticsearch (ES)

A backup of ES takes a lot of disk space and time. Disabling backup of ES can greatly reduce the size of a backup and the length of time it takes to make that backup.

This how-to-guide explains how to disable backup of Elastic Search (ES).

The How-to-guide To Disabling Elasticsearch Backups

In order to disable ES, you will need to set the Tamr environment variable TAMR_UNIFY_BACKUP to "false". The way to do this varies on your version.

Version greater or equal to v2019.008:

Run the following command while in the $TAMR_HOME/utils directory:

./unify-admin.sh config:set TAMR_UNIFY_BACKUP_ES="false"

Next restart Tamr using the following commands from the $TAMR_HOME/tamr directory:

> ./stop-unify.sh
> ./start-unify.sh

Version less than v2019.008:

Add the following to $TAMR_HOME/tamr/local-env.sh:

export TAMR_UNIFY_BACKUP_ES="false"

Then restart Tamr using the following commands from the $TAMR_HOME/tamr directory:

> ./stop.sh
> ./start.sh -r

Remember: Reindexing of ES is required

If you restore from a backup that does not have ES data in it, you will need to use API calls to reindex ES or rerun your project workflows before you will see any data in your Tamr UI. The curl commands to reindex ES are as follows:

 curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' --header 'Authorization: BasicCreds <creds>' '<host>:<port>/api/reindex/all-datascale'
 curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' --header 'Authorization: BasicCreds <creds>' '<host>:<port>/api/reindex/all-humanscale'