Database Reference
In-Depth Information
Setup and Installation
There are two possible ways to set up the Apache Pig distribution. One can either
download the tarball manually or set up a third-party binary distribution (
.deb
or
.rpm
) over Linux boxes.
For Windows, it requires downloading and setting up a Linux-like environment us-
ing cygwin. Cygwin is Unix-like environment and command-line interface for Win-
dows. Cygwin provides native integration of Windows-based applications, data, and
other system resources with applications, software tools, and data of the Unix-like en-
vironment. For more details, you can refer to
http://en.wikipedia.org/
In this chapter, we will set up using a tarball distribution for setup and other config-
uration. To set up this over your local box, let's follow the following sequence:
1.
First create a folder:
mkdir pig-dist
cd pig-dist
2.
Then, download the tarball distribution:
Note
During the writing of this chapter, the latest tarball installa-
tion is 0.12.1. You may change it for the latest version accordingly.
3.
Extract the downloaded tarball using the following command:
tar -xvf pig 0.12.1.tar.gz
After step 3, the
pig-dist
folder will have the extracted distribution under the
pig-0.12.1
folder as shown in
Figure 6-3
.