Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
5.0.0
Description
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.
import numpy as np import pyarrow as pa from pyarrow import fs import pyarrow.dataset as ds s3 = 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: When creating bucket 'my-bucket': AWS Error [code 15]: Access Denied
I'm seeing the same behavior using S3FileSystem.create_dir when recursive=True.
s3.create_dir("my-bucket/test_dir/", recursive=True) # Fails s3.create_dir("my-bucket/test_dir/", recursive=False) # Succeeds
Attachments
Issue Links
- links to