5.1.2. Upgrade Hive Server(s)

Upgrade each Hive Server process one node at a time across all Hive Server nodes. There is no order that needs to be followed.

Note that this process is slightly different than the stop–switch–start sequence for other components. You don’t need to stop hive-server2; instead you will deregister the old copy after starting the new server process. The old version of hive-server2 will stop when it finishes its workload.

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

    hdp-select set hive-server2 2.2.6.0-2800

    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.0.0-2041

  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.6.0-2800;sequence=0000000000]

    Before exiting the session (via quit) make sure that the old version is not listed.


loading table of contents...