def get_mapreduce_yaml(parse=parse_mapreduce_yaml):
 mr_yaml_path = find_mapreduce_yaml()
 if (not mr_yaml_path):
  raise MissingYamlError()
 mr_yaml_file = open(mr_yaml_path)
 try:
  return parse(mr_yaml_file.read())
 finally:
  mr_yaml_file.close()

def get_mapreduce_yaml ( parse = parse_mapreduce_yaml ) : mr_yaml_path = find_mapreduce_yaml ( ) if ( not mr_yaml_path ) : raise MissingYamlError ( ) mr_yaml_file = open ( mr_yaml_path ) try : return parse ( mr_yaml_file . read ( ) ) finally : mr_yaml_file . close ( )
locates mapreduce .