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 "RunPig" by CorinneC
Date Thu, 11 Sep 2008 00:51:18 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/RunPig

------------------------------------------------------------------------------
    * setenv PIGDIR /pig  (tcsh, csh) 
    * export PIGDIR=/pig (bash, sh, ksh)
  
+ The examples use export.
- To make things simple, copy these files to your current working directory (you may want
to create a temp directory and move to it):
- 
-   * The /etc/passwd file:
- {{{
- $ cp /etc/passwd .
- }}}
- 
-   * Copy the pig.jar file from your SVN tree (see BuildPig):
- {{{ 
- $ cp /yourSVNtree/pig.jar .
- }}}
- 
-   * The sample code files (XXX.pig and XXX.java) on this page.
  
  = Local Mode =
- This section shows you how to run Pig in local mode, using the Grunt shell, a Pig script,
and an embedded program.
+ This section shows you how to run Pig in local mode, using the Grunt shell, a Pig script,
and an embedded program. 
  
- To run Pig in local mode, you only need access to a single machine. 
+ To run Pig in local mode, you only need access to a single machine. To make things simple,
copy these files to your current working directory (you may want to create a temp directory
and move to it):
+ 
+   * The /etc/passwd file
+   * The pig.jar file, located in your SVN tree (see BuildPig)
+   * The sample code files (XXX.pig and XXX.java) located on this page
  
  === Grunt Shell ===
  To run Pig’s Grunt shell in local mode, follow these instructions.
@@ -157, +149 @@

  
  This section shows you how to run Pig in hadoop (mapreduce) mode, using the Grunt shell,
a Pig script, and an embedded program.
  
- To run Pig in hadoop (mapreduce) mode, you need access to a Hadoop cluster. 
+ To run Pig in hadoop (mapreduce) mode, you need access to a Hadoop cluster. You will also
need to copy these files to your current working directory.
+ 
+   * The /etc/passwd file
+   * The pig.jar file, located in your SVN tree (see BuildPig)
+   * The sample code files (XXX.pig and XXX.java) located on this page
  
  === Grunt Shell ===
  To run Pig’s Grunt shell in hadoop (mapreduce) mode, follow these instructions. When you
begin the session, Pig will allocate a 15-node cluster. When you quit the session, Pig will
deallocate the nodes.
@@ -190, +186 @@

  === Embedded Program ===
  To compile and run an embedded Java/Pig program in hadoop (mapreduce) mode, follow these
instructions. 
  
- First, point $HADOOPDIR to the directory that contains the hadoop-site.xml file. 
+ First, point $HADOOPDIR to the directory that contains the hadoop-site.xml file. Example:
+ {{{
+ $ export HADOOPDIR=/yourHADOOPsite/conf 
+ }}}
  
  From your current working directory, compile the program:
  {{{

Mime
View raw message