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

------------------------------------------------------------------------------
  === 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. Download and unzip the Pig tutorial file to your local directory (the Pig 
tutorial files are described below).
   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
@@ -40, +40 @@

  === Running the Pig Tutorials on a Hadoop Cluster ===
  To run the Pig tutorial on a Hadoop cluster, do the following:
  
-  1. Download and unzip the Pig tutorial file to your local directory (all 
files are explained in the next section).
+  1. Download and unzip the Pig tutorial file to your local directory (the Pig 
tutorial files are described below).
   1. Copy the exite.log file to your DFS directory.
  {{{
  $ hadoop dfs –copyFromLocal tutorial/excite.log .
@@ -56, +56 @@

  }}}
  
  === Pig Tutorial Files ===
- The Pig tutorail files are described here.
+ The Pig tutorial files are described here.
  || '''File''' || '''Description'''||
- || tutorial.jar|| JAR file containing the UDFs  ||
+ || tutorial.jar|| User-defined functions (UDFs) ||
  || tutorial.pig || Tutorial-1 (run on Hadoop) ||
- || tutorial-local.pig ||Tutorail-1 (run in local mode)  ||
+ || tutorial-local.pig ||Tutorail-1 (run in local mode) ||
  || tutorial-join.pig || Tutorial-2 (run on Hadoop) ||
  || tutorial-join-local.pig || Tutorial-2 (run in local mode) ||
- || exicte.log || Data file (for runs on Hadoop) ||
+ || excite.log || Data file (for runs on Hadoop) ||
  || excite-small.log || Data file (for runs in local mode) ||
  || pornwords || Data file (porn keywords) ||
  
+ The user-defined functions (UDFs) are described here.
+ 
+ || '''UDF''' || '''Description'''||
+ || !ExtractHour || Extracts the hour from the record.||
+ || N!GramGenerator || Extracts n-grams from the set of words. ||
+ || !NonPornDetector|| Removes porn terms from the query field. ||
+ || NonURLDetector || Removes the record if the query field is empty or a URL. 
||
+ || !ScoreGenerator || Calculates a "popularity" score for the n-gram.||
+ || !ToLower || Switches the query field to lowercase. ||
+ || !TutorialUtil || Divides the query string into a set of words.||
+ 

Reply via email to