Installing Pig
This topic includes instructions for using package managers to download and install Pig from the MEP repository.
Prerequisites
About this task
root
or using
sudo:
Procedure
-
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
-
Make sure the
JAVA_HOME
environment variable is set correctly. For example:# export JAVA_HOME=/usr/lib/jvm/java-<version>-sun