Veritas NetBackup for Hadoop Administrator's Guide
- Introduction
- Installing and deploying Hadoop plug-in for NetBackup
- Configuring NetBackup for Hadoop
- About configuring NetBackup for Hadoop
- Managing backup hosts
- Adding Hadoop credentials in NetBackup
- Configuring the Hadoop plug-in using the Hadoop configuration file
- Configuration for a Hadoop cluster that uses Kerberos
- Configuring NetBackup policies for Hadoop plug-in
- Disaster recovery of a Hadoop cluster
- Performing backups and restores of Hadoop
- Troubleshooting
- About troubleshooting NetBackup for Hadoop issues
- About NetBackup for Hadoop debug logging
- Troubleshooting backup issues for Hadoop data
- Backup operation for Hadoop fails with error code 6599
- Backup operation fails with error 6609
- Backup operation failed with error 6618
- Backup operation fails with error 6647
- Extended attributes (xattrs) and Access Control Lists (ACLs) are not backed up or restored for Hadoop
- Backup operation fails with error 6654
- Backup operation fails with bpbrm error 8857
- Backup operation fails with error 6617
- Backup operation fails with error 6616
- Troubleshooting restore issues for Hadoop data
- Restore fails with error code 2850
- NetBackup restore job for Hadoop completes partially
- Extended attributes (xattrs) and Access Control Lists (ACLs) are not backed up or restored for Hadoop
- Restore operation fails when Hadoop plug-in files are missing on the backup host
- Restore fails with bpbrm error 54932
- Restore operation fails with bpbrm error 21296
Using the bprestore command to restore Hadoop data on the same Hadoop cluster
The bprestore command lets you restore a backed up or archived file or list of files. You can also name directories to restore. If you include a directory name, bprestore restores all files and subdirectories of that directory. You can exclude a file or a directory path that was previously included in the restore by placing an exclamation mark (!) in front of the file or the directory path (does not apply to NDMP restores). For example, the exclude capability is useful if you want to exclude part of a directory from the restore.
To restore Hadoop data on the same location as your backup location
- Log on as an Administrator or root user based on windows or UNIX system respectively.
- Run the following command on the NetBackup master server by providing appropriate values:
bprestore -S master_server -D backup_host -C client -t 44 -L progress log -f listfile
Where,
-S master_serverSpecifies the name of the NetBackup master server.
-D backup hostSpecifies the name of the backup host.
-C clientSpecifies a NameNode as a 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 whitelisted file path in which to write progress information.
-t 44Specifies BigData as the policy type.
To restore Hadoop data on an alternate location
- Log on as an Administrator.
- Run the following command on the NetBackup master server by providing appropriate values:
bprestore -S master_server -D backup_host -C client -t 44 -L progress log -R rename_file -f listfile
Where,
-S master_serverSpecifies the name of the NetBackup master 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 whitelisted 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.
Change the
/<source_folder_path>to/<destination_folder_path>