HADOOP-6836. [Herriot]: Generic method for adding/modifying the attributes for new configuration. Contributed by Vinay Thota.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@964134 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Konstantin Boudnik 2010-07-14 18:48:35 +00:00
parent a73dfef140
commit 7f14e37076
2 changed files with 6 additions and 3 deletions

View File

@ -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)

View File

@ -347,7 +347,7 @@ public abstract class AbstractDaemonCluster {
* @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 AbstractDaemonCluster {
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();