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:
Make sure that you have added the credentials for the alternate NameNode or Hadoop cluster in NetBackup primary server and also completed the allowlisting tasks on NetBackup primary server. For more information about how to add Hadoop credentials in NetBackup and whitlelisting procedures, See Adding NetBackup for Hadoop credentials in NetBackup. See Including a NetBackup client on NetBackup primary server allowed list.
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 primary_server -D backup_host -C client -R rename_file -t 44 -L progress log -f listfile command on the NetBackup primary server using the modified values for the mentioned parameters in step 1.
Where,
-S primary_serverSpecifies the name of the NetBackup primary server.
-D backup hostSpecifies the name of the backup host.
-C clientSpecifies 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 listfileSpecifies 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_logSpecifies the name of allowlisted file path in which to write progress information.
-t 44Specifies BigData as the policy type.
-R rename_fileSpecifies 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 allowlisted all the file paths such as
<rename_file_path>,<progress_log_path>that are already not included as a part of NetBackup install path.