pig-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Pig Wiki] Trivial Update of "PigTutorial" by CorinneC
Date Wed, 11 Jun 2008 23:49:13 GMT
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: Hadoop Cluster ==
  To install and run the Pig scripts on a Hadoop cluster, do the following:
  
-  1. Download and unzip the Pig tutorial file to your local directory (''... not available
yet'').
+  1. Download the Pig tutorial file to your local directory (''... not available yet'').
+  1. Unzip the Pig tutorial file.
+ {{{
+ $ tar -xf pigtutorial.tar
+ }}}
+  1.#3 Move to the newly created pigtmp directory.
-  1. Review the contents of the [#Pig_Tutorial_File Pig Tutorial File].
+  1. Review the contents of the [#Pig_Tutorial_File Pig tutorial file].
   1. Review [#Pig_Script_1 Pig Script 1] and [#Pig_Script_2 Pig Script 2].
-  1. Copy the excite.log file from your local directory to the DFS directory. View the file
in the DFS directory.
+  1. Copy the excite.log file from the pigtmp directory to the DFS directory. View the file
in the DFS directory.
  {{{
  $ hadoop dfs –copyFromLocal excite.log .
  $ hadoop dfs -ls
  }}}
-  1.#5 Set the HADOOPSITEPATH environment variable to the location of your hadoop-site.xml
file.
+  1.#7 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.#7 Review the result files (located in either the script1-hadoop-results or script2-hadoop-results
DFS directory):
+  1.#9 Review the result files (located in either the script1-hadoop-results or script2-hadoop-results
DFS directory):
  {{{
  $ hadoop dfs -ls script1-hadoop-results
  }}}
  
  [[Anchor(Pig_Tutorial_File)]]
  == Pig Tutorial File ==
- The contents of the Pig tutorial file (*.gz) are described here.
+ The contents of the Pig tutorial file (pigtutorial.tar) are described here.
  || '''File''' || '''Description'''||
- || tutorial.jar|| User-defined functions (UDFs) ||
+ || tutorial.jar|| User-defined functions (UDFs) and Java classes ||
  || script1-local.pig || Pig Script 1, Query Phrase Popularity (local mode) ||
  || script1-hadoop.pig || Pig Script 1, Query Phrase Popularity (Hadoop cluster) ||
  || script2-local.pig || Pig Script 2, Temporal Query Phrase Popularity (local mode)||

Mime
View raw message