Installing Pig is drop dead simple.
sudo apt-get install pig
Check the Pig version.
Setup the Environment
We’re going to set the environment variables system-wide for Pig programming.
sudo vi /etc/environment
Paste the following environment variables into the environment file.
That’s it. You can now start to write and run pig jobs.