Installing Pig on Linux System

0 votes
Please help me with the steps to install Apache Pig on Linux system.
Feb 27, 2019 in Big Data Hadoop by Suresh
1,028 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, 2019 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 28, 2019 in Big Data Hadoop by Rajan
3,122 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,490 points
8,065 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
• 11,380 points
7,663 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
• 11,380 points
3,990 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
1,875 views
+1 vote
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
• 11,380 points
11,029 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
• 11,380 points
2,538 views
+2 votes
11 answers

hadoop fs -put command?

Hi, You can create one directory in HDFS ...READ MORE

answered Mar 16, 2018 in Big Data Hadoop by nitinrawat895
• 11,380 points
108,838 views
0 votes
1 answer

Sqoop installation on Linux

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

answered Feb 26, 2019 in Big Data Hadoop by Kriti
1,267 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 27, 2019 in Big Data Hadoop by Kirti
15,359 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP