Pig Installation Steps
2 Answer(s)
Hello Venu,
1) Create directory in lib: sudo mkdir /usr/lib/pig
2) Give it the permissions to your user and group: sudo chown -R user.group /usr/lib/pig
3) Go to the directory: cd /usr/lib/pig
4) Download it from https://pig.apache.org/ (pig-0.16.0.tar.gz) into the directory and extract: tar -zxvf pig-0.16.0.tar.gz
5) Edit the .bashrc file and insert the follow lines: gedit ~/.bashrc
export PIG_HOME=/usr/lib/pig/pig-0.16.0
export PATH=$PATH:$PIG_HOME/bin
6) Restart the .bashrc: source ~/.bashrc
7) Start to use pig: pig -h
If you need to change some configuration: /usr/lib/pig/conf
Good luck!
Hi Venugopal,
Juliano posted the write steps to install any version of Apache Pig.
@Juliano, thanks for helping Venugopal.
Please let me know if you run into any error while installation.
Thanks.