Installing and Upgrading the HCatalog RPM or Debian Packages

Installing the HCatalog RPM or Debian packages is more convenient than installing the HCatalog tarball because the packages:

  • Handle dependencies
  • Provide for easy upgrades
  • Automatically install resources to conventional locations

HCatalog comprises the following packages:

  • hive-hcatalog - HCatalog wrapper for accessing the Hive metastore, libraries for MapReduce and Pig, and a command-line program
  • hive-webhcat - A REST API server for HCatalog
  • hive-webhcat-server - Installs hive-webhcat and a server init script

Upgrading HCatalog from CDH 4 to CDH 5

To upgrade HCatalog from CDH 4 to CDH 5, proceed as follows.

Step 1: Remove the CDH 4 version of HCatalog

To remove HCatalog on a RHEL-compatible system:

$ sudo yum remove webhcat-server hcatalog 

To remove HCatalog on an Ubuntu or other Debian system:

$ sudo apt-get remove webhcat-server hcatalog 

To remove HCatalog on a SLES system:

$ sudo zypper remove webhcat-server hcatalog

Step 2: Install the new version of WebHCat and HCatalog

Follow instructions under Installing the WebHCat REST Server and Installing HCatalog for Use with Pig and MapReduce.

The upgrade is now complete.

Upgrading HCatalog from an Earlier CDH 5 Release

Follow instructions under Installing the WebHCat REST Server and Installing HCatalog for Use with Pig and MapReduce.

The upgrade is now complete.

Installing the WebHCat REST Server

To install the WebHCat REST server on a RHEL system:

$ sudo yum install hive-webhcat-server

To install the WebHCat REST server components on an Ubuntu or other Debian system:

$ sudo apt-get install hive-webhcat-server

To install the WebHCat REST server components on a SLES system:

$ sudo zypper install hive-webhcat-server

Installing HCatalog for Use with Pig and MapReduce

On hosts that will be used to launch Pig scripts or MapReduce applications using table information, install HCatalog as follows:

To install the HCatalog client components on a RHEL system:

$ sudo yum install hive-hcatalog

To install the HCatalog client components on an Ubuntu or other Debian system:

$ sudo apt-get install hive-hcatalog

To install the HCatalog client components on a SLES system:

$ sudo zypper install hive-hcatalog