5.3.2. Downgrade Hive Server(s)

Downgrade each Hive Server process one node at a time, as described below. There is no order that needs to be followed.


You don’t need to stop hive-server2; instead you will deregister the newer version after starting the previous version of the server. The newer version of hive-server2 will stop when it finishes its workload.

  1. Switch hive-server2 to the previous software version, start the previous version, and deregister the new version. For example:

    hdp-select set hive-server2

    su - hive -c "/usr/hdp/current/hive-server2/bin/hiveserver2 >/var/log/hive/hiveserver2.out 2> /var/log/hive/hiveserver2.log &"

    hive --service hiveserver2 --deregister

  2. To confirm deregistration, open a Zookeeper CLI session and check files:


    [zk: localhost:2181(CONNECTING) 0] ls /
    [hiveserver2, zookeeper]
    [zk: localhost:2181(CONNECTED) 1] ls /hiveserver2

    Before exiting the session (using quit) make sure that the newer version is no longer listed.

loading table of contents...