You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by cu...@apache.org on 2007/10/06 00:18:47 UTC

svn commit: r582412 - in /lucene/hadoop/trunk: CHANGES.txt src/java/org/apache/hadoop/mapred/JobClient.java

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