Return-Path:
Delivered-To: apmail-pig-commits-archive@www.apache.org
Received: (qmail 22949 invoked from network); 9 Dec 2010 22:43:17 -0000
Received: from unknown (HELO mail.apache.org) (140.211.11.3)
by 140.211.11.9 with SMTP; 9 Dec 2010 22:43:17 -0000
Received: (qmail 42862 invoked by uid 500); 9 Dec 2010 22:43:17 -0000
Delivered-To: apmail-pig-commits-archive@pig.apache.org
Received: (qmail 42843 invoked by uid 500); 9 Dec 2010 22:43:16 -0000
Mailing-List: contact commits-help@pig.apache.org; run by ezmlm
Precedence: bulk
List-Help:
List-Unsubscribe:
List-Post:
List-Id:
Reply-To: dev@pig.apache.org
Delivered-To: mailing list commits@pig.apache.org
Received: (qmail 42836 invoked by uid 99); 9 Dec 2010 22:43:16 -0000
Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136)
by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Dec 2010 22:43:16 +0000
X-ASF-Spam-Status: No, hits=-2000.0 required=10.0
tests=ALL_TRUSTED
X-Spam-Check-By: apache.org
Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4)
by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Dec 2010 22:43:15 +0000
Received: by eris.apache.org (Postfix, from userid 65534)
id 5D03F238897A; Thu, 9 Dec 2010 22:42:55 +0000 (UTC)
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Subject: svn commit: r1044156 - in /pig/trunk: CHANGES.txt KEYS build.xml
src/docs/src/documentation/content/xdocs/tutorial.xml
src/docs/src/documentation/content/xdocs/udf.xml
src/docs/src/documentation/content/xdocs/zebra_overview.xml
Date: Thu, 09 Dec 2010 22:42:55 -0000
To: commits@pig.apache.org
From: olga@apache.org
X-Mailer: svnmailer-1.0.8
Message-Id: <20101209224255.5D03F238897A@eris.apache.org>
Author: olga
Date: Thu Dec 9 22:42:54 2010
New Revision: 1044156
URL: http://svn.apache.org/viewvc?rev=1044156&view=rev
Log:
PIG-1728: doc updates (chandec via olgan)
Modified:
pig/trunk/CHANGES.txt
pig/trunk/KEYS
pig/trunk/build.xml
pig/trunk/src/docs/src/documentation/content/xdocs/tutorial.xml
pig/trunk/src/docs/src/documentation/content/xdocs/udf.xml
pig/trunk/src/docs/src/documentation/content/xdocs/zebra_overview.xml
Modified: pig/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/pig/trunk/CHANGES.txt?rev=1044156&r1=1044155&r2=1044156&view=diff
==============================================================================
--- pig/trunk/CHANGES.txt (original)
+++ pig/trunk/CHANGES.txt Thu Dec 9 22:42:54 2010
@@ -24,6 +24,8 @@ INCOMPATIBLE CHANGES
IMPROVEMENTS
+PIG-1728: doc updates (chandec via olgan)
+
PIG-1752: Enable UDFs to indicate files to load into the Distributed Cache
(gates)
Modified: pig/trunk/KEYS
URL: http://svn.apache.org/viewvc/pig/trunk/KEYS?rev=1044156&r1=1044155&r2=1044156&view=diff
==============================================================================
--- pig/trunk/KEYS (original)
+++ pig/trunk/KEYS Thu Dec 9 22:42:54 2010
@@ -6,27 +6,28 @@ sig 06687D96 2008-07-14 Olga N
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1.2.6 (GNU/Linux)
-mQGiBEh7rwMRBACRWYBxkUT3jICHIbgSxCpPkEzr8aXwWlRu0dAKXxj9nklyfqz8
-R5XGaD7W1HfyvmQzO1g0oQ15JFXPIhgNJ5ZbZptq/YaQf0qWAK2RRjFZNyQIg9KF
-nfFX6zdU2e5YIrx/aTQezOw6ThIUHE5hOP/vo6xo4IhjDjRBZxqtmFOtDwCgvklj
-b8issjgf0jwFH9mB3qTCDGMD/3cZTjU3gx+M3e+/7g52BK16zbLRCy3FETV2kxAI
-U0ghF032kENuuHzU9l1sGAeTSg9i+927ohg0zx+WP+HPgGZKY8CJLyswWmPWmAge
-ZJmXVlCad84/X7GD5lu1t3Ueibnw9ZWKH+oCG5mKJpBiklyyzk1OIwwIEsdsIeOF
-MrBFA/sF/cRDNWJWFVg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IC KEY BLOCK-----
Version: GnuPG v1.2.6 (GNU/Linux)
Modified: pig/trunk/build.xml
URL: http://svn.apache.org/viewvc/pig/trunk/build.xml?rev=1044156&r1=1044155&r2=1044156&view=diff
==============================================================================
--- pig/trunk/build.xml (original)
+++ pig/trunk/build.xml Thu Dec 9 22:42:54 2010
@@ -766,8 +766,7 @@
-
-
+
Modified: pig/trunk/src/docs/src/documentation/content/xdocs/tutorial.xml
URL: http://svn.apache.org/viewvc/pig/trunk/src/docs/src/documentation/content/xdocs/tutorial.xml?rev=1044156&r1=1044155&r2=1044156&view=diff
==============================================================================
--- pig/trunk/src/docs/src/documentation/content/xdocs/tutorial.xml (original)
+++ pig/trunk/src/docs/src/documentation/content/xdocs/tutorial.xml Thu Dec 9 22:42:54 2010
@@ -37,76 +37,49 @@
The Pig tutorial file (tutorial/pigtutorial.tar.gz file in the pig distribution) includes the Pig JAR file (pig.jar) and the tutorial files (tutorial.jar, Pigs scripts, log files).
These files work with Hadoop 0.20.2 and include everything you need to run the Pig scripts.
-
-
To get started, follow these basic steps:
-
-
Install Java
-
-
Install Pig
-
-
Run the Pig scripts - in Local or Hadoop mode
-
-
- Java Installation
+Check Your Setup
-
Make sure your run-time environment includes the following:
-
-
Java 1.6 or higher (preferably from Sun)
-
-
The JAVA_HOME environment variable is set the root of your Java installation.
-
-
+
Check your run-time environment and do the following preliminary tasks:
-
-
-
- Pig Installation
-
-
To install Pig, do the following:
-
Download the Pig tutorial file to your local directory.
+
Make sure the JAVA_HOME environment variable is set the root of your Java installation.
+
Make sure that bin/pig is in your PATH (this enables you to run the tutorials using the "pig" command).
+
-
Unzip the Pig tutorial file (the files are stored in a newly created directory, pigtmp).
+
Set the PIG_HOME environment variable:
+
+
Copy the pigtutorial.tar.gz file from the tutorial directory of your Pig installation to your local directory.
+
Unzip the Pig tutorial file (the files are stored in a newly created directory, pigtmp).
-
Move to the pigtmp directory.
-
-
Review the contents of the Pig tutorial file.
-
-
Copy the pig.jar file to the appropriate directory on your system. For example: /home/me/pig.
-
-
Create an environment variable, PIGDIR, and point it to your directory; for example, export PIGDIR=/home/me/pig (bash, sh) or setenv PIGDIR /home/me/pig (tcsh, csh).
-
+
Review Pig Script 1 and Pig Script 2.
+
Running the Pig Scripts in Local Mode
To run the Pig scripts in local mode, do the following:
-
-
Set the maximum memory for Java.
-
-
-
Move to the pigtmp directory.
-
Review Pig Script 1 and Pig Script 2.
-
-
Execute the following command (using either script1-local.pig or script2-local.pig).
+
+
Move to the pigtmp directory.
+
Execute the following command (using either script1-local.pig or script2-local.pig).
-
Review the result files, located in the part-r-00000 directory.
+
Review the result files, located in the part-r-00000 directory.
The output may contain a few Hadoop warnings which can be ignored:
To run the Pig scripts in mapreduce mode, do the following:
-
Move to the pigtmp directory.
-
-
Review Pig Script 1 and Pig Script 2.
-
-
Copy the excite.log.bz2 file from the pigtmp directory to the HDFS directory.
+
Move to the pigtmp directory.
+
Copy the excite.log.bz2 file from the pigtmp directory to the HDFS directory.
-
Set the HADOOP_CONF_DIR environment variable to the location of your core-site.xml, hdfs-site.xml and mapred-site.xml files.
-
-
Execute the following command (using either script1-hadoop.pig or script2-hadoop.pig):
+
Set the PIG_CLASSPATH environment variable to the location of the cluster configuration directory (the directory that contains the core-site.xml, hdfs-site.xml and mapred-site.xml files):
+
+
Set the HADOOP_CONF_DIR environment variable to the location of the cluster configuration directory:
+
+
+
Execute the following command (using either script1-hadoop.pig or script2-hadoop.pig):
-
Review the result files, located in the script1-hadoop-results or script2-hadoop-results HDFS directory:
+
Review the result files, located in the script1-hadoop-results or script2-hadoop-results HDFS directory: