Author: cos
Date: Wed Jul 14 18:48:35 2010
New Revision: 964134
URL: http://svn.apache.org/viewvc?rev=964134&view=rev
Log:
HADOOP-6836. [Herriot]: Generic method for adding/modifying the attributes for
new configuration. Contributed by Vinay Thota.
Modified:
hadoop/common/trunk/CHANGES.txt
hadoop/common/trunk/src/test/system/java/org/apache/hadoop/test/system/AbstractDaemonCluster.java
Modified: hadoop/common/trunk/CHANGES.txt
URL:
http://svn.apache.org/viewvc/hadoop/common/trunk/CHANGES.txt?rev=964134&r1=964133&r2=964134&view=diff
==============================================================================
--- hadoop/common/trunk/CHANGES.txt (original)
+++ hadoop/common/trunk/CHANGES.txt Wed Jul 14 18:48:35 2010
@@ -1032,6 +1032,9 @@ Release 0.21.0 - Unreleased
BUG FIXES
+ HADOOP-6836. [Herriot]: Generic method for adding/modifying the attributes
+ for new configuration. (Vinay Thota via cos)
+
HADOOP-6839. [Herriot] Implement a functionality for getting the user list
for creating proxy users. (Vinay Thota via cos)
Modified:
hadoop/common/trunk/src/test/system/java/org/apache/hadoop/test/system/AbstractDaemonCluster.java
URL:
http://svn.apache.org/viewvc/hadoop/common/trunk/src/test/system/java/org/apache/hadoop/test/system/AbstractDaemonCluster.java?rev=964134&r1=964133&r2=964134&view=diff
==============================================================================
---
hadoop/common/trunk/src/test/system/java/org/apache/hadoop/test/system/AbstractDaemonCluster.java
(original)
+++
hadoop/common/trunk/src/test/system/java/org/apache/hadoop/test/system/AbstractDaemonCluster.java
Wed Jul 14 18:48:35 2010
@@ -347,7 +347,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;
@@ -359,8 +359,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();