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 Wed, 10 Sep 2008 23:18:10 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

------------------------------------------------------------------------------
  You can run Pig three ways – using either local mode or hadoop (mapreduce) mode:
    * '''Grunt Shell''': Enter Pig commands manually using Pig’s interactive shell, Grunt.

    * '''Script File''': Place Pig commands in a script file and run the script.
-   * '''Embedded Program''': Embed Pig commands in a host language (Java) and run the program.
+   * '''Embedded Program''': Embed Pig commands in a host language and run the program.
+ 
+ Note: Pig, itself, is a script file (pig.sh), and is referred toas "The Pig Script File."
The Run Ways script file mentioned above is a script file that you create and which contains
the Pig commands that you want to run (we provide a sample in the next section).
  
  == Sample Code ==
- The sample code files you need to run the examples on this page include: XXX.pig and XXX.java.
+ The sample code files you need to run the examples on this page include: 
+   * Script file: XXX.pig 
+   * Embedded program: XXX.java
   
  The examples are based on these Pig commands, which extract all user IDs from the /etc/passwd
file. 
  
@@ -71, +75 @@

  $ export PIG_CLASSPATH=./pig.jar
  }}} 
  
- (1) With Pig Script
+ (1) With the Pig Script
  
  From your local directory, run:
  {{{
@@ -85, +89 @@

  grunt> dump B; 
  }}}
  
- (2) Without Pig Script
+ (2) Without the Pig Script
  
  From your current working directory, run:
  {{{

Mime
View raw message