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

------------------------------------------------------------------------------
  
   1. Download and unzip the Pig tutorial file (*.gz) to your local directory.
   1. Review the contents of the [#Pig_Tutorial_File Pig Tutorial File].
+  1. Review the [#Tutorial_Pig_Script Tutorial Pig Script] and 
the[#Tutorial_Join_Pig_Script Tutorial-Join Pig Script].
-  1. Execute the following command (using either tutorial-local.pig or 
tutorial-join-local.pig)
+  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.#4 Review the results:
+  1.#5 Review the results:
  {{{
  $ ls -l /tmp/ngrams.txt
  }}}
@@ -47, +48 @@

  
   1. Download and unzip the Pig tutorial file (*.gz) to your local directory. 
   1. Review the contents of the [#Pig_Tutorial_File Pig Tutorial File].
+  1. Review the [#Tutorial_Pig_Script Tutorial Pig Script] and 
the[#Tutorial_Join_Pig_Script Tutorial-Join Pig Script].
   1. Copy the exite.log file to your DFS directory.
  {{{
  $ hadoop dfs –copyFromLocal tutorial/excite.log .
  }}}
-  1.#4 Set the HADOOPSITEPATH environment variable to the location of your 
hadoop-site.xml file.
+  1.#5 Set the HADOOPSITEPATH environment variable to the location of your 
hadoop-site.xml file.
   1. Execute the following command (using either tutorial.pig or 
tutorial-join.pig):
  {{{
  $ java -cp pig.jar:$HADOOPSITEPATH org.apache.pig.Main tutorial.pig
  }}}
-  1.#6 Review the results:
+  1.#7 Review the results:
  {{{
  $ hadoop dfs -ls ngrams.txt
  }}}
@@ -86, +88 @@

  || !TutorialUtil || Divides the query string into a set of words.||
  
  
+ [[Anchor(Tutorial_Pig_Script)]]
  == Tutorial Pig Script ==
  
  The tutorial pig script (tutorial.pig or tutorial-local.pig) does the 
following:
@@ -108, +111 @@

   * Uses the [http://wiki.apache.org/pig/PigBuiltins PigStorage] function to 
store the results. The output file contains a list of n-grams with the 
following fields: '''hour''', '''ngram''', '''score''', '''count''', '''mean''' 
  
  
+ [[Anchor(Tutorial_Join_Pig_Script)]]
  == Tutorial-Join Pig Script ==
  
  The tutorial-join pig script (tutorial-join.pig or tutorial-join-local.pig) 
does the following:

Reply via email to