【发布时间】:2020-02-18 07:28:09
【问题描述】:
我尝试在 S3 上使用 AWS Glue 进行分区和分桶。但是分桶没有奏效。只有分区确实有效。如何使用 AWS Glue 进行存储桶?
datasink4 = glueContext.write_dynamic_frame.from_options(
frame = dropnullfields3,
connection_type = "s3",
connection_options = {"path": s3_output_full,
"partitionKeys": ["PARTITIONKEY"],
"bucketColumns": ["ROW_ID"],
"numberOfBuckets": 12},
format = "parquet",
transformation_ctx = "datasink4")
job.commit()
【问题讨论】:
标签: python amazon-web-services aws-glue bucket