4. Upgrade Hive and HCatalog

  1. Upgrade Hive and HCatalog. On the Hive and HCatalog host machines, execute the following commands:

    • For RHEL/CentOS:

      yum upgrade hive hcatalog             
    • For SLES:

      zypper update hive hcatalog
      yast --update hcatalog hive            

  2. Start Hive. On the Hive Metastore host machine, execute the following command:

     sudo su -l $HIVE_USER -c "nohup hive --service metastore > $HIVE_LOG_DIR/hive.out 2> $HIVE_LOG_DIR/hive.log &" 
                       
  3. Start Hive Server2. On the Hive Server2 host machine, execute the following command:

     sudo su -l $HIVE_USER -c "nohup /usr/lib/hive/bin/hiveserver2 -hiveconf hive.metastore.uris=\" \" > $HIVE_LOG_DIR/hiveserver2.out 2> $HIVE_LOG_DIR/hiveserver2.log &"                 

    where

    • $HIVE_USER is the Hive Service user. For example, hive.

    • $HIVE_LOG_DIR is the directory where Hive server logs are stored (example: /var/log/hive).


loading table of contents...