You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pig.apache.org by Apache Wiki <wi...@apache.org> on 2008/07/07 22:59:11 UTC
[Pig Wiki] Trivial Update of "PigTutorial" by CorinneC
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. Review [#Pig_Script_1 Pig Script 1] and [#Pig_Script_2 Pig Script 2].
1. Copy the excite.log.bz2 file from the pigtmp directory to the DFS directory.
{{{
- $ hadoop dfs –copyFromLocal excite.log.bz2 .
+ $ hadoop fs –copyFromLocal excite.log.bz2 .
}}}
1.#4 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):
@@ -72, +72 @@
1.#6 Review the result files (located in either the script1-hadoop-results or script2-hadoop-results DFS directory):
{{{
- $ hadoop dfs -ls script1-hadoop-results
+ $ hadoop fs -ls script1-hadoop-results
- $ hadoop dfs -cat 'script1-hadoop-results/*' | less
+ $ hadoop fs -cat 'script1-hadoop-results/*' | less
}}}
[[Anchor(Pig_Tutorial_File)]]