3. Upgrade ZooKeeper and HBase

  1. Execute the following command on all the ZooKeeper nodes:

    • For RHEL/CentOS:

      yum upgrade zookeeper-3.4.5.1.3.0.0
                          

    • For SLES:

      zypper update zookeeper-3.4.5.1.3.0.0
      zypper remove zookeeper

      This command uninstalls HBase. Execute the following command to install HBase:

      zypper install hbase-0.94.6.1.3.0.0
      [Important]Important

      When removing and installing packages, rename those files under the /conf directory that have .rpmsave extension to original to retain the customized configs. Alternatively, you can also use the configuration files (under the /conf directory) you backed up before upgrading.

      zypper se -s zookeeper 

      You should see ZooKeeper v3.4.5.1.3.0.0 in the output. Install ZooKeeper v3.4.5.1.3.0.0:

      zypper install zookeeper-3.4.5.1.3.0.0
  2. Start ZooKeeper. On all the ZooKeeper host machines, execute the following command:

    sudo su -l $ZOOKEEPER_USER -c "source /etc/zookeeper/conf/zookeeper-env.sh; export ZOOCFGDIR=/etc/zookeeper/conf; /usr/lib/zookeeper/bin/zkServer.sh start >> $ZOOKEEPER_LOG_DIR/zoo.out\"
                        

    where

    • $ZOOKEEPER_USER is the ZooKeeper Service user. For example, zookeeper.

    • $ZOOKEEPER_LOG_DIR is the directory where ZooKeeper server logs are stored. For example, /var/log/zookeeper.

  3. Execute the following commands on the HBase Master and the HBase slave nodes (RegionServers):

    • For RHEL/CentOS:

      yum upgrade hbase                
  4. Start HBase.

    1. Start HBase Master. On the HBase Master host machine, execute the following command:

      sudo su -l $HBASE_USER -c "/usr/lib/hbase/bin/hbase-daemon.sh --config /etc/hbase/conf start master"               
    2. Start all RegionServers. On all the RegionServers, execute the following command:

      sudo su -l $HBASE_USER -c "/usr/lib/hbase/bin/hbase-daemon.sh --config /etc/hbase/conf start regionserver\"  

      where $HBASE_USER is the HBase Service user. For example, hbase.


loading table of contents...