hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cutt...@apache.org
Subject svn commit: r582412 - in /lucene/hadoop/trunk: CHANGES.txt src/java/org/apache/hadoop/mapred/JobClient.java
Date Fri, 05 Oct 2007 22:18:47 GMT
Author: cutting
Date: Fri Oct  5 15:18:46 2007
New Revision: 582412

URL: http://svn.apache.org/viewvc?rev=582412&view=rev
Log:
HADOOP-1971.  Warn when job does not specify a jar.  Contributed by Enis.

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?rev=582412&r1=582411&r2=582412&view=diff
==============================================================================
--- lucene/hadoop/trunk/CHANGES.txt (original)
+++ lucene/hadoop/trunk/CHANGES.txt Fri Oct  5 15:18:46 2007
@@ -360,6 +360,9 @@
     HADOOP-1906. Warn the user if they have an obsolete madred-default.xml
     file in their configuration directory. (acmurthy via omalley)
 
+    HADOOP-1971.  Warn when job does not specify a jar. (enis via cutting)
+
+
 Release 0.14.2 - unreleased
 
   BUG FIXES

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?rev=582412&r1=582411&r2=582412&view=diff
==============================================================================
--- lucene/hadoop/trunk/src/java/org/apache/hadoop/mapred/JobClient.java (original)
+++ lucene/hadoop/trunk/src/java/org/apache/hadoop/mapred/JobClient.java Fri Oct  5 15:18:46
2007
@@ -377,6 +377,9 @@
       job.setJar(submitJarFile.toString());
       fs.copyFromLocalFile(new Path(originalJarPath), submitJarFile);
       fs.setReplication(submitJarFile, replication);
+    } else {
+      LOG.warn("No job jar file set.  User classes may not be found. "+
+               "See JobConf(Class) or JobConf#setJar(String).");
     }
 
     // Set the user's name and working directory



Mime
View raw message