【发布时间】:2021-07-27 20:17:53
【问题描述】:
headersAPI = {
'Content-Type': 'application/json'
, 'accept': 'application/json'
,'Authorization': 'Bearer XXXXXXXXXXXXXXXXXXXXXXXXXX',
}
skill_response=requests.get("XXXXXX",headers=headersAPI),headers=headersAPI)
log.info(skill_response.text)
skill_json=skill_response.json()
print(skill_json) ##print the json data and verified
log.info('skills data')
log.info(skill_json["status"])
DataSink0 = glueContext.write_dynamic_frame.from_options(frame =
skill_json, connection_type = "s3", format = "csv", connection_options=
{"path": "s3://xxxxx/", "partitionKeys": []}, transformation_ctx= "DataSink0")
job.commit()
TypeError:frame_or_dfc 必须是 DynamicFrame 或 DynamicFrameCollection。得到
写入 S3 时出现此错误:'dict' object has no attribute '_jdf'
【问题讨论】:
标签: python amazon-s3 aws-glue aws-glue-data-catalog aws-glue-spark