4. Upgrade Hive and HCatalog

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

    • For RHEL/CentOS:

      yum upgrade hive hcatalog
                      
    • For SLES:

      zypper update hive hcatalog
                    

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

     sudo su -l hive -c "nohup hive --service metastore > $HIVE_LOG_DIR/hive.out 2> $HIVE_LOG_DIR/hive.log &" 
     
                        

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

  3. Start Hive Server2. On the Hive Server2 host machine, execute the following command:

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

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


loading table of contents...