Steps to install apache Pig
1. Download the tar file apache pig
2. Extract the tar file by
4. Open the bashrc file by
1. Download the tar file apache pig
2. Extract the tar file by
$ tar xvzf pig-0.15.0.tar.gz
3. Set the path of pig in bashrc file4. Open the bashrc file by
$ sudo gedit .bashrc
5.paste these export lines in bashrc file at bottomexport PIG_HOME=/home/ratul/pig-0.15.0 export PATH=$PATH:/home/ratul/pig-0.15.0/bin export PIG_CLASSPATH=$HADOOP_HOME/conf6.run the command on terminal for local mode
$ pig -x local
for mapreduce mode$ pig -x mapreduce