Skip to content

S3 Endpoint #119

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
timhughes opened this issue Mar 6, 2018 · 4 comments
Closed

S3 Endpoint #119

timhughes opened this issue Mar 6, 2018 · 4 comments

Comments

@timhughes
Copy link

timhughes commented Mar 6, 2018

Is it possible to pass a s3 endpoint. For example I run a s3 compliant server internally and would like to do something like

import pyarrow.parquet as pq
import s3fs

fs = s3fs.S3FileSystem(anon=True, client_kwargs={'endpoint_url':'https://internal.domain:9000/foo'})
pandas_dataframe = pq.ParquetDataset('s3://your-bucket/', filesystem=fs).read_pandas().to_pandas()
@martindurant
Copy link
Member

martindurant commented Mar 6, 2018

Certainly. You would do

fs = s3fs.S3FileSystem(anon=True, client_kwargs={'endpoint_url': 
    "https://internal.domain:9000/foo"})

@timhughes
Copy link
Author

Yeah i just think i worked that out.

@bhuiyanmobasshir94
Copy link

If anyone wants help for local folder mounting to s3 bucket, can go through this stackoverflow.com/a/77369021/7195890

@martindurant
Copy link
Member

@bhuiyanmobasshir94 , note that the SO answer is talking about the other s3fs. This s3fs also allows you to mount a bucket/prefix via FUSE, but performance is poor. For testing purposes, both minio and moto in docker allow you to mount the internal data store to a local directory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants