def get_default_yarncluster():
 global MR_NAME_CACHE
 try:
  return conf.YARN_CLUSTERS[MR_NAME_CACHE]
 except KeyError:
  return get_yarn()

def get_default_yarncluster ( ) : global MR_NAME_CACHE try : return conf . YARN_CLUSTERS [ MR_NAME_CACHE ] except KeyError : return get_yarn ( )
get the default rm .