Big Data - Apache Pig

Back to Course

Lesson Description

Lession - #460 Apache pig Installation

Java Installation

Command to check

$java -version

Hadoop Installation

Command to check

$hadoop -version

Steps to install Apache Pig

Download the Apache Pig tar file.

Unzip the downloaded tar file.

$ tar - xvf pig-0.16.0.tar.gz

Open the bashrc file.

$ sudo nano ~/.bashrc

Presently, give the following PIG_HOME path.

export PIG_HOME=/home/hduser/pig-0.16.0
export PATH=$PATH:$PIG_HOME/receptacle

Pig Installation

Update the environment variable

$ source ~/.bashrc

Let's test the installation on the command prompt

$ pig - h

Let's start the pig in MapReduce mode.

$ pig