Browse Source

HUE-2547 [core] Reset MapReduce API cache after YARN RM switch

Piotr Ackermann 11 years ago
parent
commit
1f14101ba7
1 changed files with 2 additions and 0 deletions
  1. 2 0
      desktop/libs/hadoop/src/hadoop/cluster.py

+ 2 - 0
desktop/libs/hadoop/src/hadoop/cluster.py

@@ -188,6 +188,8 @@ def get_next_ha_yarncluster():
             LOG.warn('Picking RM HA: %s' % name)
             from hadoop.yarn import resource_manager_api
             resource_manager_api._api_cache = None # Reset cache
+            from hadoop.yarn import mapreduce_api
+            mapreduce_api._api_cache = None
             return (config, rm)
           else:
             LOG.info('RM %s is not RUNNING, skipping it: %s' % (name, cluster_info))