Installing Pig

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

Prerequisites

For instructions on setting up the MEP repository, see Step 10: Install Ecosystem Components Manually.

About this task

On a MapR cluster, execute the following commands as root or using sudo:

Procedure

  1. On each planned Pig node, install mapr-pig:
    Ubuntu
    apt-get install mapr-pig
    RedHat/ CentOS
    yum install mapr-pig
    SUSE
    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