...
- Download the Pig tutorial file to your local directory (pigtutorial.tar.gz)
- Unzip the Pig tutorial file (the files are stored in a newly created directory, pigtmp).
Code Block $ tar -xzf pigtutorial.tar.gz
- Move to the pigtmp directory.
- Review the contents of the Pig tutorial file.
- Copy the pig.jar file to the appropriate directory on your system. For example: /home/me/pig.
- Create an environment variable, PIGDIR, and point it to your directory. For example: export PIGDIR=/home/me/pig (bash, sh) or setenv PIGDIR /home/me/pig (tcsh, csh).
...
Pig Scripts: Local Mode
...
To run the Pig scripts in local mode, do the following:
...