Javatpoint Logo

91-9990449935

 0120-4256464

Pig Installation

The prerequisites for Apache Pig installation are Java and Hadoop to be installed in the system. Download the latest version of Pig from http://www.apache.org/dyn/closer.cgi/pig.

Unzip the downloaded file. The Pig script is located in the bin directory (/pig-n.n.n/bin/pig). Add /pig-n.n.n/bin to your path. Use export (bash,sh,ksh) or setenv (tcsh,csh). For example:

To get the list of pig commands write:

To start the grunt shell write the below command:

Next TopicPig Run Modes