Skip to content
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

Kedro with minio #530

Closed
noklam opened this issue Sep 30, 2020 · 5 comments
Closed

Kedro with minio #530

noklam opened this issue Sep 30, 2020 · 5 comments

Comments

@noklam
Copy link
Contributor

noklam commented Sep 30, 2020

What are you trying to do?

Kedro support major cloud storage API. I would like to use self-host storage instead, I am thinking to use Minio (S3 Compatible API)
Does kedro support this?

https://min.io/

@921kiyo
Copy link
Contributor

921kiyo commented Oct 2, 2020

Hi! Kedro uses fsspec and s3fs to handle IO to cloud storage. Looks like s3fs supports minio, so you could pass it as an argument of fs_args in a dataset class. See how to specify it in catalog Hope this helps :)

@noklam
Copy link
Contributor Author

noklam commented Oct 5, 2020

@921kiyo
The configuration is a bit trickier, maybe this could be added to kedro documentations. To use s3fs, we have to use a filepath filepath :s3:https://path and an extra endpoint_url client kwargs.

test:
  type: pandas.CSVDataSet
  filepath: s3:https://kedro-test/test.csv
  credentials: dev_s3

for credentials.yml, a typical s3 credentials look like this

dev_s3:
  aws_access_key_id: token
  aws_secret_access_key: key

If we need to use Minio
We will configure like this instead.

dev_s3:
  key: key
  secret: secret
  client_kwargs:
    endpoint_url : 'https://localhost:9000' # default for minio

@921kiyo
Copy link
Contributor

921kiyo commented Oct 5, 2020

Thank you for the feeback, glad it worked :) We are more than welcome for your contribution :) I'm closing this issue, but, feel free to reopen it if you have any fullow-up question.

@921kiyo 921kiyo closed this as completed Oct 5, 2020
@noklam
Copy link
Contributor Author

noklam commented Oct 5, 2020

Sure, I can make a PR for adding this into documentation if this is useful.

@cupdike
Copy link

cupdike commented Sep 14, 2022

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