Jelajahi Sumber

HADOOP-3884. Fix so that Eclipse plugin builds against recent Eclipse releases.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/core/trunk@681880 13f79535-47bb-0310-9956-ffa450edef68
Doug Cutting 17 tahun lalu
induk
melakukan
9f92de480a

+ 3 - 0
CHANGES.txt

@@ -988,6 +988,9 @@ Release 0.18.0 - Unreleased
     HADOOP-3865. Remove reference to FSNamesystem from metrics preventing
     garbage collection. (Lohit Vijayarenu via cdouglas)
 
+    HADOOP-3884.  Fix so that Eclipse plugin builds against recent
+    Eclipse releases.  (cutting)
+
 Release 0.17.2 - Unreleased
 
   BUG FIXES

+ 1 - 1
src/contrib/eclipse-plugin/src/java/org/apache/hadoop/eclipse/dfs/DFSFile.java

@@ -311,7 +311,7 @@ public class DFSFile extends DFSPath implements DFSContent {
 
       } catch (IOException ioe) {
         throw new CoreException(new Status(Status.ERROR,
-            Activator.PLUGIN_ID, "Unable to open file \""
+                Activator.PLUGIN_ID, 0, "Unable to open file \""
                 + DFSFile.this.path + "\"", ioe));
       }
     }

+ 5 - 4
src/contrib/eclipse-plugin/src/java/org/apache/hadoop/eclipse/server/HadoopServer.java

@@ -103,9 +103,10 @@ public class HadoopServer {
 
         } catch (IOException ioe) {
           client = null;
-          return new Status(Status.ERROR, Activator.PLUGIN_ID,
+          return new Status(Status.ERROR, Activator.PLUGIN_ID, 0,
               "Cannot connect to the Map/Reduce location: "
-                  + HadoopServer.this.getLocationName());
+                            + HadoopServer.this.getLocationName(),
+                            ioe);
         }
       }
 
@@ -145,9 +146,9 @@ public class HadoopServer {
 
       } catch (IOException ioe) {
         client = null;
-        return new Status(Status.ERROR, Activator.PLUGIN_ID,
+        return new Status(Status.ERROR, Activator.PLUGIN_ID, 0,
             "Cannot retrieve running Jobs on location: "
-                + HadoopServer.this.getLocationName());
+                          + HadoopServer.this.getLocationName(), ioe);
       }
 
       // Schedule the next observation