AWS Glue作业的输出是通过定义Glue作业中的输出连接来实现的。要重命名Glue作业的输出,你需要执行以下步骤:
glueContext.write_dynamic_frame.from_options(frame = dynamic_frame, connection_type = "s3", connection_options = {"path": "s3://output-bucket/output-folder"})
glueContext.write_dynamic_frame.from_options(frame = dynamic_frame, connection_type = "s3", connection_options = {"path": "s3://output-bucket/new-output-folder"})
请注意,重命名输出将导致新的输出路径被创建,原有的输出路径及其内容将不会被删除。如果需要删除旧的输出路径,请手动删除或使用AWS CLI或AWS SDK进行删除操作。