Versions Compared

Key

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

...

  1. Move to the pigtmp directory.
  2. Review Pig Script 1 and Pig Script 2.
  3. Execute the following command (using either script1-local.pig or script2-local.pig).
    Code Block
    $ java -cp $PIGDIR/pig.jar org.apache.pig.Main -x local script1-local.pig
    
  4. Review the result file (either script1-local-results.txt or script2-local-results.txt):
    Code Block
    
    $ ls -l script1-local-results.txt
    $ cat script1-local-results.txt
    

Pig Scripts: Hadoop Mode

To run the Pig scripts in hadoop (mapreduce) mode, do the following:

...