Hadoop is already installed, and the environment variables are set (see Hadoop installation https://github.com/mirjalil/DataScience/blob/master/bigdata-platforms/install-hadoop-ubuntu.md)
Download Pig from http://pig.apache.org/releases.html
Extract and move to /usr/local/pig/
export PATH=/usr/local/pig/bin/:$PATH
Disable the logging info
create a file called ~/nolog.conf and add the following content
log4j.rootLogger=fatal
pig -x local
ls
pig -x mapreduce
fs -lsr /
quit
In [ ]: