You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Steve Jacobs (JIRA)" <ji...@apache.org> on 2017/10/05 20:18:01 UTC

[jira] [Commented] (AIRFLOW-1114) S3Hook doesn't support Minio

    [ https://issues.apache.org/jira/browse/AIRFLOW-1114?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16193574#comment-16193574 ] 

Steve Jacobs commented on AIRFLOW-1114:
---------------------------------------

Instead of 'host' I would suggest adding an endpoint_url extra arg and setting endpoint_url in the S3Connection object. Setting the host doesn't work with the signature API correctly but setting the endpoint does.

> S3Hook doesn't support Minio
> ----------------------------
>
>                 Key: AIRFLOW-1114
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-1114
>             Project: Apache Airflow
>          Issue Type: Improvement
>          Components: aws, hooks
>    Affects Versions: Airflow 1.8
>         Environment: I am running it from the following Docker image: https://github.com/puckel/docker-airflow
>            Reporter: Alessandro Cosentino
>
> I want to mock an S3 bucket with Minio for local testing when using the S3Hook. If I specify a connection whose host url is {{localhost}}, the S3Hook fails to connect to the bucket because it can't infer the region.
> I suspect this is due to a bug in boto: https://github.com/boto/boto/issues/2624
> One solution would be to upgrade the S3Hook to boto3. If I get the green light, I will make a PR for that.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)