在由 AWS Glue Job 编写的 S3 对象中设置访问控制列表(ACL)

0

【以下的问题经过翻译处理】 我从帐户A运行Glue作业,将数据写入帐户B的S3存储桶中。这意味着对象的所有者是帐户A,我无法使用来自帐户B的对象进行操作。

有没有办法告诉Glue作业为存储桶所有者应用具有完全控制权限的ACL?

profile picture
EXPERT
asked 5 months ago17 views
1 Answer
0

【以下的回答经过翻译处理】 你可以在Spark作业中使用Hadoop Java配置来更新S3 canned acl。

‘’‘

import sys from pyspark import SparkConf from pyspark.context import SparkContext from pyspark.sql.functions import * from pyspark.sql import SQLContext, Row

sc = SparkContext()

’‘’

profile picture
EXPERT
answered 5 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions