I'm trying to write a parquet file to an existing S3 bucket using the new S3FileSystem interface. However, this is failing with an AWS Access Denied error (I do have necessary access). It appears to be trying to recreate the bucket which already exists.
importnumpyasnpimportpyarrowaspafrompyarrowimportfsimportpyarrow.datasetasdss3 = fs.S3FileSystem(region="us-west-2")
table = pa.table({"a": range(10), "b": np.random.randn(10), "c": [1, 2] * 5})
ds.write_dataset(
table,
"my-bucket/test.parquet",
format="parquet",
filesystem=s3,
)OSError: Whencreatingbucket'my-bucket': AWSError [code15]: AccessDenied
I'm seeing the same behavior using S3FileSystem.create_dir when recursive=True.
s3.create_dir("my-bucket/test_dir/", recursive=True) # Failss3.create_dir("my-bucket/test_dir/", recursive=False) # SucceedsReporter: Caleb Overman / @caleboverman
Assignee: Weston Pace / @westonpace
PRs and other links:
Note: This issue was originally created as ARROW-13685. Please see the migration documentation for further details.
I'm trying to write a parquet file to an existing S3 bucket using the new S3FileSystem interface. However, this is failing with an AWS Access Denied error (I do have necessary access). It appears to be trying to recreate the bucket which already exists.
I'm seeing the same behavior using
S3FileSystem.create_dirwhenrecursive=True.Reporter: Caleb Overman / @caleboverman
Assignee: Weston Pace / @westonpace
PRs and other links:
Note: This issue was originally created as ARROW-13685. Please see the migration documentation for further details.