amazon-web-services - S3 GetObjectTagging error for only subset of similar files
问题描述
I have a spark application that creates 1000 files in S3 bucket. Later I need to move these files to a different directory in the same S3 bucket. But when I try this using AWSCLI, a very few files (~10) are not moved and show the error of AccessDenied as follows:
[padmanabhpande]$ aws s3 cp s3://my-bucket-name/datasets_tmp s3://my-bucket-name/datasets-2020-06-22 --recursive
copy failed: s3://my-bucket-name/datasets_tmp/train-2020-06-22/id=138751/part-00020-6f77e24e-4df8-4ef5-9743-1d7a84deba40.c000.snappy.parquet to s3://my-bucket-name/datasets-2020-06-22/train-2020-06-22/id=138751/part-00020-6f77e24e-4df8-4ef5-9743-1d7a84deba40.c000.snappy.parquet An error occurred (AccessDenied) when calling the GetObjectTagging operation: Access Denied
Why this is happening for only 10s of files and rest 990 are moved successfully, when the same spark application creates all these files at the same time.
解决方案
推荐阅读
- javascript - 无法从字符串访问 this.props 到函数
- ios - WebSocket 网络错误:操作无法完成
- java - 将excel表第二个选项卡中的特定列存储在java中的数组列表中
- asp.net - 如何从头开始为异步内存会话设置 SQL Server 2017
- javascript - 从 D3 v3 改编到 v5 的代码需要额外更新才能正确呈现
- javascript - 如何测试查询器验证
- c# - 在 C# 中的 gridview 中添加时间列
- c# - 尽管登录成功,但仍触发安全日志(事件 4648)的 C# 事件处理程序
- python - 如何根据有关日期使用python的接近程度的特定条件删除重复项?
- java - JAXB XJC:如何生成 java 类