Installing Pig on Linux System

0 votes
Please help me with the steps to install Apache Pig on Linux system.
Feb 27 in Big Data Hadoop by Suresh
25 views

1 answer to this question.

0 votes

It was a good thing that you mentioned Apache Pig :P

Well, follow these steps to install Pig:

To install pig, you first need the pig file. You can download the pig file from:

http://www.apache.org/dyn/closer.cgi/pig

Next, extract the files using this command:

$ cd Downloads

$ tar -xvf pig-0.16.0.tar.gz

Now, we need to add Pig path to the bashrc file. Run the following commands for this:

$ cd ..

$ nano .bashrc

Now, add the following entries to the bashrc file:

export PIG_HOME=/home/edureka/Downloads/pig-0.16.0

export PATH=$PATH:/home/edureka/Downloads/pig-0.16.0/bin

export PIG_CLASSPATH=$HADOOP_CONF_DIR

Save (Ctrl+O) and exit (Ctrl+X)

Reload the changes using:

$ source .bashrc

Now, to verify the installation, run the following command:

$ pig -version

This will print the version of Pig installed.

answered Feb 27 by Yuri

Related Questions In Big Data Hadoop

0 votes
1 answer

Installing Oozie on Linux System

Download Oozie from this link: http://www.apache.org/dyn/closer.lua/oozie/ Extract the files. ...READ MORE

answered Feb 27 in Big Data Hadoop by Rajan
49 views
0 votes
1 answer

What are the hardware requirements for installing Hadoop on my Laptop?

You can either install Apache Hadoop on ...READ MORE

answered Apr 10, 2018 in Big Data Hadoop by Shubham
• 13,190 points
1,035 views
0 votes
1 answer

Not able to find HDFS directory on my system?

I guess you didn't understand it correctly dfs.datanode.data.dir, ...READ MORE

answered Apr 17, 2018 in Big Data Hadoop by nitinrawat895
• 10,110 points
150 views
0 votes
1 answer

Difference between Hadoop file system and Linux

Yes, to a certain extent we can ...READ MORE

answered Apr 20, 2018 in Big Data Hadoop by nitinrawat895
• 10,110 points
138 views
0 votes
1 answer

What do we exactly mean by “Hadoop” – the definition of Hadoop?

The official definition of Apache Hadoop given ...READ MORE

answered Mar 16, 2018 in Big Data Hadoop by Shubham
153 views
0 votes
1 answer

Hadoop Mapreduce word count Program

Firstly you need to understand the concept ...READ MORE

answered Mar 16, 2018 in Data Analytics by nitinrawat895
• 10,110 points
2,055 views
0 votes
1 answer

hadoop.mapred vs hadoop.mapreduce?

org.apache.hadoop.mapred is the Old API  org.apache.hadoop.mapreduce is the ...READ MORE

answered Mar 16, 2018 in Data Analytics by nitinrawat895
• 10,110 points
198 views
0 votes
10 answers

hadoop fs -put command?

copy command can be used to copy files ...READ MORE

answered Dec 7, 2018 in Big Data Hadoop by Sujay
10,515 views
0 votes
1 answer

Sqoop installation on Linux

Before installing Sqoop, make sure Hadoop is ...READ MORE

answered Feb 26 in Big Data Hadoop by Kriti
66 views
0 votes
1 answer

How to install Hive on Windows Operating System?

First, download Hive from the following link: http://www.apache.org/dyn/closer.cgi/hive/ Next, ...READ MORE

answered Feb 26 in Big Data Hadoop by Kirti
823 views