def _get_running_app_ids(self):
        try:
            running_apps = {}
            metrics_json = self.request("/%s?%s" % (REST_API['YARN_APPS_PATH'], "states=RUNNING&applicationTypes=MAPREDUCE"))
            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)
        except Exception as e:
            self._readq.nput("mapreduce.state %s %s" % (int(time.time()), '1'))
            self.log_exception('exception collecting yarn apps metric for mapreduce \n %s',e)

        return running_apps