NetBackup™ for Hadoop Administrator's Guide
- Introduction
- Prerequisites and best practices for the Hadoop plug-in for NetBackup
- Configuring NetBackup for Hadoop
- Managing backup hosts
- Configuring the Hadoop plug-in using the Hadoop configuration file
- Configuring communication between NetBackup and Hadoop clusters that are SSL-enabled (HTTPS)
- 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:
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 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_server
Specifies the name of the NetBackup primary 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 allowlisted 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 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.