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

------------------------------------------------------------------------------
  To install and run the Pig scripts in local mode, do the following:
  
   1. Download the Pig tutorial file (''... not available yet'').
-  1. Unzip the file in the appropriate directory on your system.
+  1. Unzip the file in a local directory on your system.
   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).
@@ -42, +42 @@

  $ java -cp $PIGDIR/pig.jar org.apache.pig.Main -x local tutorial-local.pig
  }}}
  
-  1.#6 Review the results:
+  1.#6 Review the results (either tutorial-local-results.txt or 
tutorial-join-local-results.txt):
  {{{
- $ ls -l /tmp/ngrams.txt
+ $ ls -l tutorial-local-results.txt
  }}}
  
  
@@ -52, +52 @@

  To install and run the Pig scripts on a Hadoop cluster, do the following:
  
   1. Download the Pig tutorial file (''... not available yet'').
-  1. Unzip the file in the appropriate directory on your system. 
+  1. Unzip the file in a directory on your system. 
   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 .
+ $ hadoop dfs –copyFromLocal excite.log .
  }}}
   1.#6 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
+ $ java -cp $PIGDIR/pig.jar:$HADOOPSITEPATH org.apache.pig.Main tutorial.pig
  }}}
-  1.#8 Review the results:
+  1.#8 Review the results (either tutorial-results.txt or 
tutorial-join-results.txt):
  {{{
- $ hadoop dfs -ls ngrams.txt
+ $ hadoop dfs -ls tutorial-results.txt
  }}}
  
  [[Anchor(Pig_Tutorial_File)]]

Reply via email to