Saturday 10 September 2016

PIG LATIN INSTALLATION

       PIG LATIN INSTALLATION


1. Download a Pig release from the following link
http://mirror.wanxp.id/apache/pig/

2.Enter into the directory where the stable version is downloaded. By default it downloads in  Downloads directory.
$ cd Downloads/

3.Unzip the tar file.
$ tar -xvf pig-0.11.1.tar.gz

4.Create directory
$ sudo mkdir /usr/lib/pig

5.move pig-0.16.0 to pig
$ sudo mv pig-0.16.0 /usr/lib/pig

6.Set the PIG_HOME path in bashrc file.
$ gedit ~/.bashrc

In bashrc file append the below 2 statements
export PIG_HOME=/usr/lib/pig/pig-0.16.0
export PATH=$PATH:$PIG_HOME/bin

Save and exit.
          $ source .bashrc

7.Now lets test the installation On the command prompt type
$ pig -h

8.Starting pig in mapreduce mode


$ pig

2 comments:

  1. I esteem your undertakings since it passes on the message of what you are endeavoring to state. It's an exceptional aptitude to make even the person who doesn't consider the subject could prepared to grasp the subject. Your web diaries are legitimate and moreover excessively portrayed. I might want to examine a regularly expanding number of captivating articles from your blog. Keep Sharing
    Big Data Hadoop online training in Delhi, Noida
    Online Hadoop training in Bangalore, Hyderabad, Chennai

    ReplyDelete
  2. I esteem your undertakings since it passes on the message of what you are endeavoring to state. It's an exceptional aptitude to make even the person who doesn't consider the subject could prepared to grasp the subject. Your web diaries are legitimate and moreover excessively portrayed. I might want to examine a regularly expanding number of captivating articles from your blog. Keep Sharing
    Tableau online training in Chennai
    Tableau online training in Bangalore

    ReplyDelete