YARN-9775. RMWebServices /scheduler-conf GET returns all hadoop configurations for ZKConfigurationStore. Contributed by Prabhu Joseph
(cherry picked from commit 8660e48ca15098e891c560beb3181c22ef3f80ff) (cherry picked from commit e4249c320257586384035ea3fc286fe54cc699a1) (cherry picked from commit 6baa0d1e4d78c15833257d98bdd2b38806faed9f)
This commit is contained in:
parent
5b064381aa
commit
c98f7cef9f
@ -196,7 +196,7 @@ public synchronized Configuration retrieve() {
|
||||
try {
|
||||
Map<String, String> map =
|
||||
(HashMap<String, String>) deserializeObject(serializedSchedConf);
|
||||
Configuration c = new Configuration();
|
||||
Configuration c = new Configuration(false);
|
||||
for (Map.Entry<String, String> e : map.entrySet()) {
|
||||
c.set(e.getKey(), e.getValue());
|
||||
}
|
||||
|
@ -117,6 +117,8 @@ public void testPersistConfiguration() throws Exception {
|
||||
confStore.initialize(conf, schedConf, rmContext);
|
||||
assertEquals("val", confStore.retrieve().get("key"));
|
||||
|
||||
assertNull(confStore.retrieve().get(YarnConfiguration.RM_HOSTNAME));
|
||||
|
||||
// Create a new configuration store, and check for old configuration
|
||||
confStore = createConfStore();
|
||||
schedConf.set("key", "badVal");
|
||||
|
Loading…
x
Reference in New Issue
Block a user