Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Pig Wiki" for change 
notification.

The following page has been changed by CorinneC:
http://wiki.apache.org/pig/PigTutorial

------------------------------------------------------------------------------
  === Pig Installation ===
  To install Pig, do the following:
  
-  1. Download the Pig JAR file (pig.jar).
-  1. Move the file to the appropriate directory. For example, /home/me/pig. 
+  1. Download the Pig JAR file (pig.jar) and move it to the appropriate 
directory. For example, /home/me/pig. 
   1. Define an environment variable with the location of the Pig JAR file. For 
example, export PIGDIR=/home/me/pig (bash, sh) or setenv PIGDIR /home/me/pig 
(tcsh, csh).
  
+ 
+ === Running the Pig Tutorials in Local Mode ===
+ To run the Pig tutorial in local mode, do the following:
+  1. Download and unzip the Pig tutorial file to your local directory (all 
files are explained in the next section).
+  1. Execute the following command (using either tutorial-local.pig or 
tutorial-join-local.pig)
+ {{{
+ $ java -cp $PIGDIR/pig.jar org.apache.pig.Main -x local tutorial-local.pig
+ }}}
+ 
+  1.#3 Review the results:
+ {{{
+ $ ls -l /tmp/ngrams.txt
+ }}}
+ 

Reply via email to