Veritas NetBackup for Hadoop Administrator's Guide
- Introduction
- Installing and deploying Hadoop plug-in for NetBackup
- Configuring NetBackup for Hadoop
- Managing backup hosts
- Configuring the Hadoop plug-in using the Hadoop configuration file
- Configuring NetBackup policies for Hadoop plug-in
- Performing backups and restores of Hadoop
- Troubleshooting
- Troubleshooting backup issues for Hadoop data
- Troubleshooting restore issues for Hadoop data
Restoring Hadoop data on an alternate Hadoop cluster
NetBackup lets you restore Hadoop data to another NameNode or Hadoop cluster. This type of restore method is also referred to as redirected restores.
Note:
NetBackup supports redirected restores only using the Command Line Interface (CLI).
Note:
Make sure that you have added the credentials for the alternate NameNode or Hadoop cluster in NetBackup master server and also completed the Whitelisting tasks on NetBackup master server. For more information about how to add Hadoop credentials in NetBackup and whitlelisting procedures, See Adding Hadoop credentials in NetBackup. See Whitelisting a NetBackup client on NetBackup master server.
To perform redirected restore for Hadoop
- Modify the values for rename_file and listfile as follows:
Parameter
Value
rename_file
Change
/<source_folder_path>
to/<destination_folder_path> ALT_APPLICATION_SERVER=<alternate name node>
listfile
List of all the Hadoop files to be restored
- 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 NameNode 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_filepath to restore_filepath 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.