Veritas NetBackup™ for HBase Administrator's Guide
- Introduction
- Deploying HBase plug-in for NetBackup
- Configuring NetBackup for HBase
- Managing backup hosts
- Configuring the HBase plug-in using the HBase configuration file
- Configuring NetBackup policies for HBase plug-in
- Performing backups and restores of HBase
- Troubleshooting
Restoring HBase data on an alternate HBase cluster
NetBackup lets you restore HBase data to another HMaster or HBase cluster. This type of restore method is also referred to as redirected restores.
Consider the following when you perform an alternate restore
To restoring HBase tables to different cluster, both cluster must have same HBase version deployed.
NetBackup supports redirected restores only using the Command Line Interface (CLI).
Make sure that you have added the credentials for the alternate HMaster or HBase cluster in NetBackup master server.
To perform redirected restore for HBase
- Modify the values for rename_file and listfile as follows:
Parameter
Value
rename_file
Change
/<namespace:source_table_name>
to/<namespace:destination_table_name> ALT_APPLICATION_SERVER=<alternate name node>
listfile
List of all the HBase files to be restored
Note:
/<namespace:source_table_name>
and/<namespace:destination_table_name>
must be different. - Run the bprestore -S master_server -D backup_host-C client -R rename_file -t 44 -L progress log -f listfile command on the NetBackup master server using the modified values for the mentioned parameters in step 1.
Where,
-S master_server
Specifies the name of the NetBackup master server.
-D backup_host
Specifies the name of the backup host.
-C client
Specifies a HMaster as a source to use for finding backups or archives from which to restore files. This name must be as it appears in the NetBackup catalog.
-f listfile
Specifies a file (listfile) that contains a list of files to be restored and can be used instead of the file names option. In listfile, list each file path must be on a separate line.
-L progress_log
Specifies the name of whitelisted file path in which to write progress information.
-t 44
Specifies BigData as the policy type.
-R rename_file
Specifies the name of a file with name changes for alternate-path restores.
Use the following form for entries in the rename file:
change backup_tablename to restore_tablename ALT_APPLICATION_SERVER=<Application Server Name>
The file paths must start with / (slash).
Note:
Ensure that you have whitelisted all the file paths such as
<rename_file_path>
,<progress_log_path>
that are already not included as a part of NetBackup install path.