in spark-on-eks/source/lib/util/manifest_reader.py [0:0]
def load_yaml_remotely(url, multi_resource=False):
try:
file_to_parse = request.urlopen(url)
if multi_resource:
yaml_data = list(yaml.full_load_all(file_to_parse))
else:
yaml_data = yaml.full_load(file_to_parse)
# print(yaml_data)
except:
print("Cannot read yaml config file {}, check formatting."
"".format(file_to_parse))
sys.exit(1)
return yaml_data