hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From omal...@apache.org
Subject svn commit: r1077525 - /hadoop/common/branches/branch-0.20-security-patches/src/test/system/java/org/apache/hadoop/test/system/AbstractDaemonCluster.java
Date Fri, 04 Mar 2011 04:24:15 GMT
Author: omalley
Date: Fri Mar  4 04:24:14 2011
New Revision: 1077525

URL: http://svn.apache.org/viewvc?rev=1077525&view=rev
Log:
commit 5a8986c7cac2fb0e9f23fa710b73ffeba751669e
Author: Vinay Kumar Thota <vinayt@yahoo-inc.com>
Date:   Fri Jul 2 11:59:20 2010 +0000

    HADOOP:6836 from https://issues.apache.org/jira/secure/attachment/12448032/6836-ydist-security.patch

Modified:
    hadoop/common/branches/branch-0.20-security-patches/src/test/system/java/org/apache/hadoop/test/system/AbstractDaemonCluster.java

Modified: hadoop/common/branches/branch-0.20-security-patches/src/test/system/java/org/apache/hadoop/test/system/AbstractDaemonCluster.java
URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-0.20-security-patches/src/test/system/java/org/apache/hadoop/test/system/AbstractDaemonCluster.java?rev=1077525&r1=1077524&r2=1077525&view=diff
==============================================================================
--- hadoop/common/branches/branch-0.20-security-patches/src/test/system/java/org/apache/hadoop/test/system/AbstractDaemonCluster.java
(original)
+++ hadoop/common/branches/branch-0.20-security-patches/src/test/system/java/org/apache/hadoop/test/system/AbstractDaemonCluster.java
Fri Mar  4 04:24:14 2011
@@ -319,7 +319,7 @@ public abstract class AbstractDaemonClus
    * @param configFile configuration file.
    * @throws IOException if an I/O error occurs.
    */
-  public void restartClusterWithNewConfig(Hashtable<String,Long> props, 
+  public void restartClusterWithNewConfig(Hashtable<String,?> props, 
       String configFile) throws IOException {
 
     String mapredConf = null;
@@ -331,8 +331,8 @@ public abstract class AbstractDaemonClus
     Enumeration<String> e = props.keys();
     while (e.hasMoreElements()) {
       String propKey = e.nextElement();
-      Long propValue = props.get(propKey);
-      initConf.setLong(propKey,propValue.longValue());
+      Object propValue = props.get(propKey);
+      initConf.set(propKey,propValue.toString());
     }
 
     localDirPath = getHadoopLocalConfDir();



Mime
View raw message