It was a good thing that you mentioned Apache Pig :P
Well, follow these steps to install Pig:
To install pig, you first need the pig file. You can download the pig file from:
http://www.apache.org/dyn/closer.cgi/pig
Next, extract the files using this command:
$ cd Downloads
$ tar -xvf pig-0.16.0.tar.gz
Now, we need to add Pig path to the bashrc file. Run the following commands for this:
$ cd ..
$ nano .bashrc
Now, add the following entries to the bashrc file:
export PIG_HOME=/home/edureka/Downloads/pig-0.16.0
export PATH=$PATH:/home/edureka/Downloads/pig-0.16.0/bin
export PIG_CLASSPATH=$HADOOP_CONF_DIR
Save (Ctrl+O) and exit (Ctrl+X)
Reload the changes using:
$ source .bashrc
Now, to verify the installation, run the following command:
$ pig -version
This will print the version of Pig installed.