hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cdoug...@apache.org
Subject svn commit: r675077 - in /hadoop/core/branches/branch-0.18: CHANGES.txt src/mapred/org/apache/hadoop/mapred/join/Parser.java
Date Wed, 09 Jul 2008 01:34:47 GMT
Author: cdouglas
Date: Tue Jul  8 18:34:47 2008
New Revision: 675077

URL: http://svn.apache.org/viewvc?rev=675077&view=rev
Log:
HADOOP-3706. Fix a ClassLoader issue in the mapred.join Parser that
prevents it from loading user-specified InputFormats.
Contributed by Jingkei Ly.

Modified:
    hadoop/core/branches/branch-0.18/CHANGES.txt
    hadoop/core/branches/branch-0.18/src/mapred/org/apache/hadoop/mapred/join/Parser.java

Modified: hadoop/core/branches/branch-0.18/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/core/branches/branch-0.18/CHANGES.txt?rev=675077&r1=675076&r2=675077&view=diff
==============================================================================
--- hadoop/core/branches/branch-0.18/CHANGES.txt (original)
+++ hadoop/core/branches/branch-0.18/CHANGES.txt Tue Jul  8 18:34:47 2008
@@ -737,6 +737,10 @@
     HADOOP-3630. Fix NullPointerException in CompositeRecordReader from empty
     sources (cdouglas)
 
+    HADOOP-3706. Fix a ClassLoader issue in the mapred.join Parser that
+    prevents it from loading user-specified InputFormats.
+    (Jingkei Ly via cdouglas)
+
 Release 0.17.2 - Unreleased
 
   BUG FIXES

Modified: hadoop/core/branches/branch-0.18/src/mapred/org/apache/hadoop/mapred/join/Parser.java
URL: http://svn.apache.org/viewvc/hadoop/core/branches/branch-0.18/src/mapred/org/apache/hadoop/mapred/join/Parser.java?rev=675077&r1=675076&r2=675077&view=diff
==============================================================================
--- hadoop/core/branches/branch-0.18/src/mapred/org/apache/hadoop/mapred/join/Parser.java
(original)
+++ hadoop/core/branches/branch-0.18/src/mapred/org/apache/hadoop/mapred/join/Parser.java
Tue Jul  8 18:34:47 2008
@@ -267,8 +267,8 @@
         Token t = i.next();
         if (TType.COMMA.equals(t.getType())) {
           try {
-            inf = (InputFormat)ReflectionUtils.newInstance(
-                Class.forName(sb.toString()).asSubclass(InputFormat.class),
+          	inf = (InputFormat)ReflectionUtils.newInstance(
+          			job.getClassByName(sb.toString()),
                 job);
           } catch (ClassNotFoundException e) {
             throw (IOException)new IOException().initCause(e);



Mime
View raw message