NetBackup™ for HBase Administrator's Guide
- Introduction
- Deploying HBase plug-in for NetBackup
- Configuring NetBackup for HBase
- Performing backups and restores of HBase
- Troubleshooting
Preparing the HBase cluster
Perform the following tasks to prepare the HBase cluster for NetBackup:
Update firewall settings (port 50070 by default) so that the backup hosts can communicate with the HBase cluster.
Add the entries of all the HMaster and region servers to the
/etc/hosts
file on all the backup hosts. You must add the hostname in FQDN format.Or
Add the appropriate DNS entries in the
/etc/resolve.conf
file.Add the entries of all the backup hosts to
/etc/hosts
file on the HMaster and region servers.Ensure that HBase service is enabled on the HBase cluster.
HMaster user should be able to do SSH.
Ensure that jdk package installed. Also ensure that, Java path is set and compatible with HBase version.
Ensure that jps command is working on HMaster. For more details, refer the HBase documentation.
Set the following environment variables for HMaster in the
.bashrc
file for all users configured under tpconfig of primary server.export JAVA_HOME= PATH_OF_JAVA_DIR
export HADOOP_HOME=PATH_OF_HDFS_DIR
export HADOOP_MAPRED_HOME=$HADOOP_HOME
export HADOOP_COMMON_HOME=$HADOOP_HOME
export HADOOP_HDFS_HOME=$HADOOP_HOME
export YARN_HOME=$HADOOP_HOME
export HADOOP_COMMON_LIB_NATIVE_DIR=$HADOOP_HOME/lib/native
export PATH=$PATH:$HADOOP_HOME/sbin:$HADOOP_HOME/bin
export HADOOP_INSTALL=$HADOOP_HOME
export HADOOP_OPTS="$HADOOP_OPTS -Djava.library.path=$HADOOP_HOME/lib/native"
export HBASE_HOME=PATH OF HBASE DIR
PATH=$PATH:$HBASE_HOME/bin:$JAVA_HOME/bin
export CLASSPATH=$CLASSPATH:/usr/local/hadoop/hbase/lib/*