Upgrading Hive

This section describes how to upgrade Hive without the Installer.

About this task

Use one of the following methods to upgrade the Hive components on all nodes where Hive is installed.

Procedure

To:
  • Upgrade with a package manager, install new packages from the repository:
    • On RedHat and CentOS:
      yum update mapr-hive mapr-hiveserver2 mapr-hivemetastore mapr-hivewebhcat
    • On Ubuntu:
      apt-get install mapr-hive mapr-hiveserver2 mapr-hivemetastore mapr-hivewebhcat
    • On SLES:
      zypper update mapr-hive mapr-hiveserver2 mapr-hivemetastore mapr-hivewebhcat
  • Manually remove a prior version and manually install the latest version in the repository, run the package manager twice, first to remove the old version, and again to install the new version.
    NOTE In this case, configurations are not preserved automatically.
    • On RedHat and CentOS:
      yum remove mapr-hive mapr-hiveserver2 mapr-hivemetastore mapr-hivewebhcat
      yum install mapr-hive mapr-hiveserver2 mapr-hivemetastore mapr-hivewebhcat
    • On Ubuntu:
      apt-get remove mapr-hive mapr-hiveserver2 mapr-hivemetastore mapr-hivewebhcat
      apt-get install mapr-hive mapr-hiveserver2 mapr-hivemetastore mapr-hivewebhcat
    • On SLES:
      zypper remove mapr-hive mapr-hiveserver2 mapr-hivemetastore mapr-hivewebhcat
      zypper install mapr-hive mapr-hiveserver2 mapr-hivemetastore mapr-hivewebhcat

What to do next

To apply custom configurations to the new version, migrate any custom configuration settings into the new default files in the conf directory. See Post-Upgrade Steps for Hive.