Closed
Description
Dear Zarr community,
I am troubling with the upgrade to the latest Zarr version. In my previous version i used
s3_out = s3fs.S3FileSystem(
anon=False,
loop=get_loop(),
key="access-key",
secret="secret_key",
client_kwargs={"endpoint_url": "other-s3-domain"}
)
ds = xarray.open_zarr(
store=s3fs.S3Map(
root=f"s3:///{bucket_name}/{dataset_name}.zarr", s3=s3_out, check=False
),
consolidated=True,
)
This worked for me. But now, S3Map is not supported anymore so i started to use FsspecStore
but I am receiving PermissionError and I assume that my credentials are not correctly passed to the function call:
ds = xarray.open_zarr(
store=zarr.storage.FsspecStore.from_url(
f"s3:///{bucket_name}/{dataset_name}.zarr",
read_only=True,
storage_options={
"key": "access-key",
"secret": "secret_key",
"endpoint_url": "other-s3-domain",
"anon": "False,
"loop": get_loop(),
},
),
consolidated=consolidated,
)
What am I doing wrong here?
Metadata
Assignees
Labels
No labels