Similar to Hive, Pig provides a handy tool for manipulating Hadoop data. In this recipe, we are going to discuss the installation of Apache Pig.
Before we install Pig, we need to make sure Hadoop has been properly installed. Please refer to the previous sections about the configuration of a Hadoop cluster.
Download the Pig archive file from a mirror site with the following command on the administrator machine:
wget http://www.motorlogy.com/apache/pig/stable/pig-0.10.1.tar.gz ~/repo
Use the following steps to configure Pig:
hduserwith the following command:
/usr/localwith the following command: