hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cutt...@apache.org
Subject svn commit: r464713 - in /lucene/hadoop/trunk: CHANGES.txt src/java/org/apache/hadoop/mapred/JobClient.java
Date Mon, 16 Oct 2006 23:04:48 GMT
Author: cutting
Date: Mon Oct 16 16:04:47 2006
New Revision: 464713

URL: http://svn.apache.org/viewvc?view=rev&rev=464713
Log:
HADOOP-586.  Use the jar name for otherwise un-named jobs.  Contributed by Sanjay.

Modified:
    lucene/hadoop/trunk/CHANGES.txt
    lucene/hadoop/trunk/src/java/org/apache/hadoop/mapred/JobClient.java

Modified: lucene/hadoop/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/hadoop/trunk/CHANGES.txt?view=diff&rev=464713&r1=464712&r2=464713
==============================================================================
--- lucene/hadoop/trunk/CHANGES.txt (original)
+++ lucene/hadoop/trunk/CHANGES.txt Mon Oct 16 16:04:47 2006
@@ -14,6 +14,9 @@
  3. HADOOP-498.  Re-implement DFS integrity checker to run server-side,
     for much improved performance.  (Milind Bhandarkar via cutting)
 
+ 4. HADOOP-586.  Use the jar name for otherwise un-named jobs.
+    (Sanjay Dahiya via cutting)
+
 
 Release 0.7.1 - 2006-10-11
 

Modified: lucene/hadoop/trunk/src/java/org/apache/hadoop/mapred/JobClient.java
URL: http://svn.apache.org/viewvc/lucene/hadoop/trunk/src/java/org/apache/hadoop/mapred/JobClient.java?view=diff&rev=464713&r1=464712&r2=464713
==============================================================================
--- lucene/hadoop/trunk/src/java/org/apache/hadoop/mapred/JobClient.java (original)
+++ lucene/hadoop/trunk/src/java/org/apache/hadoop/mapred/JobClient.java Mon Oct 16 16:04:47
2006
@@ -281,6 +281,10 @@
         short replication = (short)job.getInt("mapred.submit.replication", 10);
 
         if (originalJarPath != null) {           // copy jar to JobTracker's fs
+          // use jar name if job is not named. 
+          if( "".equals(job.getJobName() )){
+            job.setJobName(new Path(originalJarPath).getName());
+          }
           job.setJar(submitJarFile.toString());
           fs.copyFromLocalFile(new Path(originalJarPath), submitJarFile);
           fs.setReplication(submitJarFile, replication);



Mime
View raw message