This is the documentation for CDH 5.0.x. Documentation for other versions is available at Cloudera Documentation.

Upgrading Pig

  Note:

To see which version of Pig is shipping in CDH 5, check the Version and Packaging Information. For important information on new and changed components, see the Release Notes.

Upgrading Pig from CDH 4 to CDH 5

To upgrade Pig to CDH 5:

  Note:

If you have already performed the steps to uninstall CDH 4 and all components, as described under Upgrading from CDH 4 to CDH 5, you can skip Step 1 below and proceed with installing the new CDH 5 version of Pig.

Step 1: Remove Pig

  1. Exit the Grunt shell and make sure no Pig scripts are running.
  2. Remove the CDH 4 version of Pig

To remove Pig On Red Hat-compatible systems:

$ sudo yum remove hadoop-pig

To remove Pig on SLES systems:

$ sudo zypper remove pig

To remove Pig on Ubuntu and other Debian systems:

$ sudo apt-get remove pig

Step 2: Install the new version

Follow the instructions in the next section, Installing Pig.

  Important: Configuration files
  • If you install a newer version of a package that is already on the system, configuration files that you have modified will remain intact.
  • If you uninstall a package, the package manager renames any configuration files you have modified from <file> to <file>.rpmsave. If you then re-install the package (probably to install a new version) the package manager creates a new <file> with applicable defaults. You are responsible for applying any changes captured in the original configuration file to the new configuration file. In the case of Ubuntu and Debian upgrades, you will be prompted if you have made changes to a file for which there is a new version; for details, see Automatic handling of configuration files by dpkg.

Upgrading Pig from an Earlier CDH 5 release

The instructions that follow assume that you are upgrading Pig as part of a CDH 5 upgrade, and have already performed the steps under Upgrading from a CDH 5 Beta Release to the Latest Release .

To upgrade Pig from an earlier CDH 5 release:

  1. Exit the Grunt shell and make sure no Pig scripts are running.
  2. Install the new version, following the instructions in the next section, Installing Pig.
  Important: Configuration files
  • If you install a newer version of a package that is already on the system, configuration files that you have modified will remain intact.
  • If you uninstall a package, the package manager renames any configuration files you have modified from <file> to <file>.rpmsave. If you then re-install the package (probably to install a new version) the package manager creates a new <file> with applicable defaults. You are responsible for applying any changes captured in the original configuration file to the new configuration file. In the case of Ubuntu and Debian upgrades, you will be prompted if you have made changes to a file for which there is a new version; for details, see Automatic handling of configuration files by dpkg.
Page generated September 3, 2015.