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.

[Note]Note

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 2.2.0.0-2041

    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 0.14.0.2.2.8.0-3150

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

    /usr/hdp/current/zookeeper-client/bin/zkCli.sh

    [zk: localhost:2181(CONNECTING) 0] ls /
    [hiveserver2, zookeeper]
    [zk: localhost:2181(CONNECTED) 1] ls /hiveserver2
    [serverUri=localhost:10000;version=0.14.0.2.2.0.0-2041;sequence=0000000000]

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


loading table of contents...