Configuring Pig - manojkumar3036/BigData-using-Hadoop GitHub Wiki
Configuring Pig
Open the bashrc file:
sudo nano ~/.bashrc
Append the following at the end of the file
set home for pig
export PIG_HOME=/home/manoj/Documents/Pig export PATH=$PATH:$PIG_HOME/bin export PIG_CLASSPATH=$HADOOP_HOME/etc
Note: PIG_CLASSPATH=locate the location where you have hdfs-site and other configuration files of hadoop
pig -version
To check the version of PIG installed
pig -help
To check the commands
pig
To move to the grunt shell