def _get_running_app_ids(self, rm_address, **kwargs):
    '\n        Return a dictionary of {app_id: (app_name, tracking_url)} for the running MapReduce applications\n        '
    metrics_json = self._rest_request_to_json(rm_address, YARN_APPS_PATH, YARN_SERVICE_CHECK, states=YARN_APPLICATION_STATES, applicationTypes=YARN_APPLICATION_TYPES)
    running_apps = {}
    if metrics_json.get('apps'):
        if (metrics_json['apps'].get('app') is not None):
            for app_json in metrics_json['apps']['app']:
                app_id = app_json.get('id')
                tracking_url = app_json.get('trackingUrl')
                app_name = app_json.get('name')
                if (app_id and tracking_url and app_name):
                    running_apps[app_id] = (app_name, tracking_url)
    return running_apps
Return a dictionary of {app_id: (app_name, tracking_url)} for the running MapReduce applications
def _get_running_app_ids(self, rm_address, **kwargs):
    '\n        \n        '
    metrics_json = self._rest_request_to_json(rm_address, YARN_APPS_PATH, YARN_SERVICE_CHECK, states=YARN_APPLICATION_STATES, applicationTypes=YARN_APPLICATION_TYPES)
    running_apps = {}
    if metrics_json.get('apps'):
        if (metrics_json['apps'].get('app') is not None):
            for app_json in metrics_json['apps']['app']:
                app_id = app_json.get('id')
                tracking_url = app_json.get('trackingUrl')
                app_name = app_json.get('name')
                if (app_id and tracking_url and app_name):
                    running_apps[app_id] = (app_name, tracking_url)
    return running_apps