MapR 5.0 Documentation : 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:

    On Ubuntu...
    apt-get update
    On RedHat/ CentOS...
    yum clean all
  2. On each planned Pig node, install mapr-pig:

    On Ubuntu...
    apt-get install mapr-pig
    On RedHat/ CentOS...
    yum install mapr-pig
  3. Make sure the environment variable JAVA_HOME is set correctly. 

    # export JAVA_HOME=/usr/lib/jvm/java-<version>-sun