浏览代码

HADOOP-4309. Fix eclipse-plugin compilation.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/core/trunk@700322 13f79535-47bb-0310-9956-ffa450edef68
Christopher Douglas 16 年之前
父节点
当前提交
4d99a47ba3

+ 2 - 0
CHANGES.txt

@@ -799,6 +799,8 @@ Release 0.19.0 - Unreleased
     HADOOP-4274. Capacity scheduler accidently modifies the underlying 
     HADOOP-4274. Capacity scheduler accidently modifies the underlying 
     data structures when browing the job lists. (Hemanth Yamijala via omalley)
     data structures when browing the job lists. (Hemanth Yamijala via omalley)
 
 
+    HADOOP-4309. Fix eclipse-plugin compilation. (cdouglas)
+
 Release 0.18.2 - Unreleased
 Release 0.18.2 - Unreleased
 
 
   BUG FIXES
   BUG FIXES

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

@@ -420,7 +420,7 @@ public class HadoopServer {
    */
    */
   public void storeSettingsToFile(File file) throws IOException {
   public void storeSettingsToFile(File file) throws IOException {
     FileOutputStream fos = new FileOutputStream(file);
     FileOutputStream fos = new FileOutputStream(file);
-    this.conf.write(fos);
+    this.conf.writeXml(fos);
     fos.close();
     fos.close();
   }
   }
 
 

+ 1 - 1
src/contrib/eclipse-plugin/src/java/org/apache/hadoop/eclipse/servers/RunOnHadoopWizard.java

@@ -163,7 +163,7 @@ public class RunOnHadoopWizard extends Wizard {
       // confDir);
       // confDir);
       File confFile = new File(confDir, "hadoop-site.xml");
       File confFile = new File(confDir, "hadoop-site.xml");
       FileOutputStream fos = new FileOutputStream(confFile);
       FileOutputStream fos = new FileOutputStream(confFile);
-      conf.write(fos);
+      conf.writeXml(fos);
       fos.close();
       fos.close();
 
 
     } catch (IOException ioe) {
     } catch (IOException ioe) {