5. Upgrade HBase

Complete the following steps to upgrade HBase:
  1. Upgrade the packages using one of the following methods:
    To upgrade with a package manager:
    After configuring repositories so that the version you want to install is available, you can use a package manager to install from the repository. The upgrade process will remove all but the following directories in the current HBase directory: conf and logs.
    On RedHat and CentOS
    To upgrade an HBase region server node:
    yum upgrade mapr-hbase mapr-hbase-regionserver
    To upgrade an HBase master node:
    yum upgrade mapr-hbase mapr-hbase-master
    To upgrade an HBase client node:
    yum upgrade mapr-hbase
    On Ubuntu
    To upgrade an HBase region server node:
    apt-get install mapr-hbase mapr-hbase-regionserver
    To upgrade an HBase master node:
    apt-get install mapr-hbase mapr-hbase-master
    To upgrade an HBase client node:
    apt-get install mapr-hbase
    To upgrade by manually installing packages:
    On RedHat and CentOS
    1. Download the RPM package files mapr-hbase, mapr-hbase-master, and mapr-hbase-regionserver for version 0.98.x from http://package.mapr.com/releases/ecosystem-all.
    2. Install the package with rpm. To upgrade an HBase region server node: To upgrade an HBase master node:
      rpm -i --force mapr-hbase-0.98.<version>.noarch.rpm mapr-hbase-regionserver-0.98.<version>.noarch.rpm
      rpm -i --force mapr-hbase-0.98.<version>.noarch.rpm mapr-hbase-master-0.98.<version>.noarch.rpm
    On Ubuntu
    1. Download the RPM package files mapr-hbase, mapr-hbase-master, and mapr-hbase-regionserver for version 0.98.x from http://package.mapr.com/releases/ecosystem-all.
    2. Install the package with dpkg. To upgrade an HBase region server node: To upgrade an HBase master node:
      dpkg -i mapr-hbase_0.98.<version>_all.deb mapr-hbase-regionserver_0.98.<version>_all.deb
      dpkg -i mapr-hbase_0.98.<version>_all.deb mapr-hbase-master_0.98.<version>_all.deb
    Note: If you have additional HBase services or libraries installed, you should also upgrade those packages to match the HBase version you are upgrading to.
  2. Migrate any custom configuration settings to the configuration files within the conf directory:
    /opt/mapr/hbase/hbase-<version>/conf/
  3. Run configure.sh -R on all of the upgraded HBase nodes:
    $ /opt/mapr/server/configure.sh -R