Following Installation steps will execute successfully only when you have installed Hadoop with the help of this link.

open terminal window
sudo su hduser
cd
sudo wget http://apache-mirror.rbc.ru/pub/apache/pig/pig-0.13.0/pig-0.13.0.tar.gz
sudo cp pig-0.13.0.tar.gz /usr/local/
cd /usr/local
sudo tar -xvf pig-0.13.0.tar.gz
sudo mv pig-0.13.0 pig
sudo rm pig-0.13.0.tar.gz
sudo chown hduser:hadoop -R pig

Add PIG variables in bashrc file by using following commands

nano ~/.bashrc
#PIG VARIABLES START
export PIG_HOME=/usr/local/pig
export PATH=$PATH:$PIG_HOME/bin
#PIG VARIABLES END

ctrl+X
Y
<enter>

source ~/.bashrc

Run following command to start pig prompt which is also known as grunt.

pig

Above command will launch pig prompt in MapReduce mode.

If you want to run pig in local mode, then you can use following command .

pig -x local

 

 

 

Advertisements

One thought on “Pig 0.13.0 Installation on Hadoop 2.6.0 on Ubuntu 14.04

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s