Installing Pig

This topic includes instructions for using package managers to download and install Pig from the MEP repository.

For instructions on setting up the MEP repository, see Step 10: Install Ecosystem Components Manually.
On a MapR cluster, execute the following commands as root or using sudo:
  1. On each planned Pig node, install mapr-pig:
    apt-get install mapr-pig
    RedHat/ CentOS
    yum install mapr-pig
    zypper install mapr-pig
  2. Make sure the JAVA_HOME environment variable is set correctly. For example:
    # export JAVA_HOME=/usr/lib/jvm/java-<version>-sun