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 | |
---|---|
You don’t need to stop |
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.9.0-$BUILD
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.