From mapreduce-commits-return-498-apmail-hadoop-mapreduce-commits-archive=hadoop.apache.org@hadoop.apache.org Fri Nov 27 12:37:56 2009
Return-Path:
Delivered-To: apmail-hadoop-mapreduce-commits-archive@minotaur.apache.org
Received: (qmail 35866 invoked from network); 27 Nov 2009 12:37:56 -0000
Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3)
by minotaur.apache.org with SMTP; 27 Nov 2009 12:37:56 -0000
Received: (qmail 79413 invoked by uid 500); 27 Nov 2009 10:51:15 -0000
Delivered-To: apmail-hadoop-mapreduce-commits-archive@hadoop.apache.org
Received: (qmail 79350 invoked by uid 500); 27 Nov 2009 10:51:15 -0000
Mailing-List: contact mapreduce-commits-help@hadoop.apache.org; run by ezmlm
Precedence: bulk
List-Help:
List-Unsubscribe:
List-Post:
List-Id:
Reply-To: mapreduce-dev@hadoop.apache.org
Delivered-To: mailing list mapreduce-commits@hadoop.apache.org
Received: (qmail 79340 invoked by uid 99); 27 Nov 2009 10:51:14 -0000
Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230)
by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Nov 2009 10:51:14 +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; Fri, 27 Nov 2009 10:51:07 +0000
Received: by eris.apache.org (Postfix, from userid 65534)
id 8BF7F23888C5; Fri, 27 Nov 2009 10:50:45 +0000 (UTC)
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Subject: svn commit: r884832 - in /hadoop/mapreduce/trunk: ./
src/docs/src/documentation/content/xdocs/
src/java/org/apache/hadoop/mapreduce/
src/java/org/apache/hadoop/mapreduce/filecache/
src/test/mapred/org/apache/hadoop/mapred/ src/test/mapred/testshell/
Date: Fri, 27 Nov 2009 10:50:45 -0000
To: mapreduce-commits@hadoop.apache.org
From: sharad@apache.org
X-Mailer: svnmailer-1.0.8
Message-Id: <20091127105045.8BF7F23888C5@eris.apache.org>
X-Virus-Checked: Checked by ClamAV on apache.org
Author: sharad
Date: Fri Nov 27 10:50:44 2009
New Revision: 884832
URL: http://svn.apache.org/viewvc?rev=884832&view=rev
Log:
MAPREDUCE-787. Fix JobSubmitter to honor user given symlink path. Contributed by Amareshwari Sriramadasu.
Modified:
hadoop/mapreduce/trunk/CHANGES.txt
hadoop/mapreduce/trunk/src/docs/src/documentation/content/xdocs/mapred_tutorial.xml
hadoop/mapreduce/trunk/src/docs/src/documentation/content/xdocs/streaming.xml
hadoop/mapreduce/trunk/src/java/org/apache/hadoop/mapreduce/JobSubmitter.java
hadoop/mapreduce/trunk/src/java/org/apache/hadoop/mapreduce/filecache/TaskDistributedCacheManager.java
hadoop/mapreduce/trunk/src/test/mapred/org/apache/hadoop/mapred/TestCommandLineJobSubmission.java
hadoop/mapreduce/trunk/src/test/mapred/testshell/ExternalMapReduce.java
Modified: hadoop/mapreduce/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/mapreduce/trunk/CHANGES.txt?rev=884832&r1=884831&r2=884832&view=diff
==============================================================================
--- hadoop/mapreduce/trunk/CHANGES.txt (original)
+++ hadoop/mapreduce/trunk/CHANGES.txt Fri Nov 27 10:50:44 2009
@@ -921,3 +921,6 @@
MAPREDUCE-1239. Fix contrib components build dependencies.
(Giridharan Kesavan and omalley)
+ MAPREDUCE-787. Fix JobSubmitter to honor user given symlink path.
+ (Amareshwari Sriramadasu via sharad)
+
Modified: hadoop/mapreduce/trunk/src/docs/src/documentation/content/xdocs/mapred_tutorial.xml
URL: http://svn.apache.org/viewvc/hadoop/mapreduce/trunk/src/docs/src/documentation/content/xdocs/mapred_tutorial.xml?rev=884832&r1=884831&r2=884832&view=diff
==============================================================================
--- hadoop/mapreduce/trunk/src/docs/src/documentation/content/xdocs/mapred_tutorial.xml (original)
+++ hadoop/mapreduce/trunk/src/docs/src/documentation/content/xdocs/mapred_tutorial.xml Fri Nov 27 10:50:44 2009
@@ -607,17 +607,35 @@
would be present in the current working directory of the task
using the option -files. The -libjars
option allows applications to add jars to the classpaths of the maps
- and reduces. The -archives allows them to pass archives
- as arguments that are unzipped/unjarred and a link with name of the
- jar/zip are created in the current working directory of tasks. More
+ and reduces. The option -archives allows them to pass
+ comma separated list of archives as arguments. These archives are
+ unarchived and a link with name of the archive is created in
+ the current working directory of tasks. More
details about the command line options are available at
Hadoop Commands Guide.
Running wordcount example with
- -libjars and -files:
+ -libjars, -files and -archives:
+ hadoop jar hadoop-examples.jar wordcount -files cachefile.txt
- -libjars mylib.jar input output
-
+ -libjars mylib.jar -archives myarchive.zip input output
+ Here, myarchive.zip will be placed and unzipped into a directory
+ by the name "myarchive.zip"
+
+
+
Users can specify a different symbolic name for
+ files and archives passed through -files and -archives option, using #.
+
+
+
For example,
+ hadoop jar hadoop-examples.jar wordcount
+ -files dir1/dict.txt#dict1,dir2/dict.txt#dict2
+ -archives mytar.tgz#tgzdir input output
+ Here, the files dir1/dict.txt and dir2/dict.txt can be accessed by
+ tasks using the symbolic names dict1 and dict2 respectively.
+ And the archive mytar.tgz will be placed and unarchived into a
+ directory by the name tgzdir
+