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:
parent
a73dfef140
commit
7f14e37076
@ -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)
|
||||
|
||||
|
@ -347,7 +347,7 @@ private String getHadoopLocalConfDir() {
|
||||
* @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 void restartClusterWithNewConfig(Hashtable<String,Long> props,
|
||||
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();
|
||||
|
Loading…
Reference in New Issue
Block a user