Install Pig

The following procedures use the operating system package managers to download and install Pig from the MapR Repository. For instructions on setting up the ecosystem repository (which includes Pig), see Preparing Packages and Repositories. On a MapR cluster, execute the following commands as root or using sudo:
  1. Update the list of available packages:
    Ubuntu
    apt-get update
    RedHat/ CentOS
    yum clean all
  2. On each planned Pig node, install mapr-pig:
    Ubuntu
    apt-get install mapr-pig
    RedHat/ CentOS
    yum install mapr-pig
  3. Make sure the environment variable JAVA_HOME is set correctly. Example:
    # export JAVA_HOME=/usr/lib/jvm/java-<version>-sun