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 Scripts: Local Mode ==
  To install and run the Pig scripts in local mode, do the following:
  
-  1. Create a temporary directory. For example: /home/me/tmp
-  1. Download and unzip the Pig tutorial file in the temporary directory 
(''... not available yet'').
+  1. Download and unzip the Pig tutorial file to your local directory (''... 
not available yet'').
   1. Review the contents of the [#Pig_Tutorial_File Pig Tutorial File].
-  1. Review the scripts: [#Pig_Script_1 Pig Script 1] and [#Pig_Script_2 Pig 
Script 2].
+  1. Review [#Pig_Script_1 Pig Script 1] and [#Pig_Script_2 Pig Script 2].
   1. Execute the following command (using either script1-local.pig or 
script2-local.pig).
  {{{
  $ java -cp $PIGDIR/pig.jar org.apache.pig.Main -x local script1-local.pig
@@ -51, +50 @@

  == Pig Scripts: Hadoop Cluster ==
  To install and run the Pig scripts on a Hadoop cluster, do the following:
  
-  1. Create a temporary directory. For example: /home/me/tmp
-  1. Download and unzip the Pig tutorial file in the temporary directory 
(''... not available yet'').
+  1. Download and unzip the Pig tutorial file to your local directory (''... 
not available yet'').
   1. Review the contents of the [#Pig_Tutorial_File Pig Tutorial File].
-  1. Review the scripts: [#Pig_Script_1 Pig Script 1] and [#Pig_Script_2 Pig 
Script 2].
+  1. Review [#Pig_Script_1 Pig Script 1] and [#Pig_Script_2 Pig Script 2].
-  1. Copy the excite.log file from the temporary directory to the DFS 
directory. View the file in your DFS directory.
+  1. Copy the excite.log file from your local directory to the DFS directory. 
View the file in the DFS directory.
  {{{
  $ hadoop dfs –copyFromLocal excite.log .
  $ hadoop dfs -ls
  }}}
-  1.#6 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 script1-hadoop.pig or 
script2-hadoop.pig):
  {{{
  $ java -cp $PIGDIR/pig.jar:$HADOOPSITEPATH org.apache.pig.Main 
script1-hadoop.pig
  }}}
-  1.#8 Review the result files (located in either the script1-hadoop-results 
or script2-hadoop-results DFS directory):
+  1.#7 Review the result files (located in either the script1-hadoop-results 
or script2-hadoop-results DFS directory):
  {{{
- $ hadoop dfs -ls tutorial-results
+ $ hadoop dfs -ls script1-hadoop-results
  }}}
  
  [[Anchor(Pig_Tutorial_File)]]
@@ -75, +73 @@

  The contents of the Pig tutorial file (*.gz) are described here.
  || '''File''' || '''Description'''||
  || tutorial.jar|| User-defined functions (UDFs) ||
- || script1-local.pig || Pig script, Query Phrase Popularity (local mode) ||
+ || script1-local.pig || Pig Script 1, Query Phrase Popularity (local mode) ||
- || script1-hadoop.pig || Pig script, Query Phrase Popularity (Hadoop cluster) 
||
+ || script1-hadoop.pig || Pig Script 1, Query Phrase Popularity (Hadoop 
cluster) ||
- || script2-local.pig || Pig script, Temporal Query Phrase Popularity (local 
mode)||
+ || script2-local.pig || Pig Script 2, Temporal Query Phrase Popularity (local 
mode)||
- || script2-hadoop.pig || Pig script, Temporal Query Phrase Popularity (Hadoop 
cluster) ||
+ || script2-hadoop.pig || Pig Script 2, Temporal Query Phrase Popularity 
(Hadoop cluster) ||
  || excite-small.log || Log file, Excite search engine (local mode) ||
  || excite.log || Log file, Excite search engine (Hadoop cluster) ||
  || pornwords || Data file (porn keywords) ||

Reply via email to