Install Pig
About this task
root
or using sudo:
Procedure
-
Update the list of available packages:
- Ubuntu
-
apt-get update
- RedHat/ CentOS
-
yum clean all
-
On each planned Pig node, install
mapr-pig
:- Ubuntu
-
apt-get install mapr-pig
- RedHat/ CentOS
-
yum install mapr-pig
-
Make sure the environment variable
JAVA_HOME
is set correctly. Example:# export JAVA_HOME=/usr/lib/jvm/java-<version>-sun