def _match_history_log_path(path, job_id=None):
 m = _HISTORY_LOG_PATH_RE.match(path)
 if (not m):
  return None
 if (not ((job_id is None) or (m.group('job_id') == job_id))):
  return None
 return dict(job_id=m.group('job_id'), yarn=('.jhist' in m.group('suffix')))

def _match_history_log_path ( path , job_id = None ) : m = _HISTORY_LOG_PATH_RE . match ( path ) if ( not m ) : return None if ( not ( ( job_id is None ) or ( m . group ( 'job_id' ) == job_id ) ) ) : return None return dict ( job_id = m . group ( 'job_id' ) , yarn = ( '.jhist' in m . group ( 'suffix' ) ) )
yield paths/uris of all job history files in the given directories .