Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Download the Pig tutorial file to your local directory (pigtutorial.tar.gz)
  2. Unzip the Pig tutorial file (the files are stored in a newly created directory, pigtmp).
    Code Block
    $ tar -xzf pigtutorial.tar.gz
    
  3. Move to the pigtmp directory.
  4. Review the contents of the Pig tutorial file.
  5. Copy the pig.jar file to the appropriate directory on your system. For example: /home/me/pig.
  6. 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:

...