Veritas NetBackup™ for HBase Administrator's Guide

Last Published:
Product(s): NetBackup (8.2, 8.1.2)
Platform: Linux,UNIX,Windows
  1. Introduction
    1.  
      Protecting HBase data using NetBackup
    2.  
      Backing up HBase data
    3.  
      Restoring HBase data
    4.  
      NetBackup for HBase terminologies
    5.  
      Limitations
  2. Deploying HBase plug-in for NetBackup
    1.  
      About the HBase plug-in deployment
    2.  
      Pre-requisites for installing the HBase plug-in
    3.  
      Operating system and platform compatibility
    4.  
      License for HBase plug-in for NetBackup
    5.  
      Preparing the HBase cluster
    6.  
      Best practices for deploying the HBase plug-in
    7.  
      Post installation procedures
    8.  
      Verifying the deployment of the HBase plug-in
  3. Configuring NetBackup for HBase
    1.  
      About configuring NetBackup for HBase
    2. Managing backup hosts
      1.  
        Whitelisting a NetBackup client on NetBackup master server
      2.  
        Configure a NetBackup Appliance as a backup host
    3.  
      Adding HBase credentials in NetBackup
    4. Configuring the HBase plug-in using the HBase configuration file
      1.  
        Configuring NetBackup for a highly-available HBase cluster
    5.  
      Configuration for a HBase cluster that uses Kerberos
    6. Configuring NetBackup policies for HBase plug-in
      1. Creating a BigData backup policy
        1. Creating BigData policy using the NetBackup Administration Console
          1.  
            Using the Policy Configuration Wizard to create a BigData policy for HBase clusters
          2.  
            Using the NetBackup Policies utility to create a BigData policy for HBase clusters
        2.  
          Using NetBackup Command Line Interface (CLI) to create a BigData policy for HBase clusters
    7.  
      Disaster recovery of a HBase cluster
  4. Performing backups and restores of HBase
    1. About backing up a HBase cluster
      1.  
        Pre-requisite for running backup and restore operations for a HBase cluster with Kerberos authentication
      2.  
        Backing up a HBase cluster
      3.  
        Best practices for backing up a HBase cluster
    2. About restoring a HBase cluster
      1. Restoring HBase data on the same HBase cluster
        1.  
          Using the Restore Wizard to restore HBase data on the same cluster
        2.  
          Using the bprestore command to restore HBase data on the same HBase cluster
    3.  
      Restoring HBase data on an alternate HBase cluster
    4.  
      Restoring truncated tables
    5.  
      Best practices for restoring a HBase cluster
  5. Troubleshooting
    1.  
      About NetBackup for HBase debug logging
    2.  
      Backup fails with error 6609
    3.  
      Backup fails with error 6601
    4.  
      Backup fails with error 6623
    5.  
      Restore fails with error 2850
    6.  
      Backup fails with error 20
    7.  
      Backup fails with error 112

Using NetBackup Command Line Interface (CLI) to create a BigData policy for HBase clusters

You can also use the CLI method to create a BigData policy for HBase.

To create a BigData policy using NetBackup CLI method

  1. Log on as an Administrator.
  2. Navigate to /usr/openv/netbackup/bin/admincmd.
  3. Create a new BigData policy using the default settings.

    bppolicynew policyname

  4. View the details about the new policy using the -L option.

    bpplinfo policyname -L

  5. Modify and update the policy type as BigData.

    bpplinfo PolicyName -modify -v -M MasterServerName -pt BigData

  6. Specify the Application_Type as HBase.

    For Windows:

    bpplinclude PolicyName -add "Application_Type=hbase"

    For UNIX:

    bpplinclude PolicyName -add 'Application_Type=hbase

    Note:

    The parameter values for Application_Type=HBase are case-sensitive.

  7. Specify the backup host on which you want the backup operations to be performed for HBase.

    For Windows:

    bpplinclude PolicyName -add "Backup_Host=hostname"

    For UNIX:

    bpplinclude PolicyName -add 'Backup_Host=hostname'

    Note:

    The backup host must be a Linux computer. The backup host can be a NetBackup client or a media server or a master server.

  8. Specify the HBase directory or folder name that you want to backup.

    For Windows:

    bpplinclude PolicyName -add "/namespace:table_name"

    For UNIX:

    bpplinclude PolicyName -add '/namespace:table_name'

    Note:

    Directory or folder used for backup selection while defining BigData Policy with Application_Type=hbase must not contain space or comma in their names.

  9. Modify and update the policy storage type for BigData policy.

    bpplinfo PolicyName -residence STUName -modify

  10. Specify the IP address or the host name of the HMaster for adding the client details.

    For Windows:

    bpplclients PolicyName -M "MasterServerName" -add "HBaseServerHMaster" "Linux" "RedHat"

    For UNIX:

    bpplclients PolicyName -M 'MasterServerName' -add 'HBaseServerHMaster' 'Linux' 'RedHat'

  11. Assign a schedule for the created BigData policy as per your requirements.

    bpplsched PolicyName -add Schedule_Name -cal 0 -rl 0 -st sched_type -window 0 0

    Here, sched_type value can be specified as follows:

    Schedule Type

    Description

    FULL

    Full backup

    INCR

    Differential Incremental backup

    CINC

    Cumulative Incremental backup

    TLOG

    Transaction Log

    The default value for sched_type is FULL.

    Once you set the schedule, HBase data is backed up automatically as per the set schedule without any further user intervention.

  12. Alternatively, you can also perform a manual backup for HBase data.

    For performing a manual backup operation, execute all the steps from Step 1 to Step 11.

  13. For a manual backup operation, navigate to /usr/openv/netbackup/bin

    Initiate a manual backup operation for an existing BigData policy using the following command:

    bpbackup -i -p PolicyName -s Schedule_Name -S MasterServerName -t 44

    Here, -p refers to policy, -s refers to schedule, -S refers to master server, and -t 44 refers to BigData policy type.