3. Upgrade ZooKeeper and HBase

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

    • For RHEL/CentOS:

      yum upgrade zookeeper
                          

    • For SLES:

      zypper update zookeeper
                          

  2. Start ZooKeeper. On all the ZooKeeper host machines, execute the following command:

    sudo su -l zookeeper -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_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
                          
    • For SLES:

      zypper update hbase
                          
  4. Start HBase.

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

      sudo su -l hbase -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 -c \"/usr/lib/hbase/bin/hbase-daemon.sh --config /etc/hbase/conf start regionserver\"
                              


loading table of contents...