airflow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Fokko Driesprong (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (AIRFLOW-2293) Fix S3FileTransformOperator to work with boto3
Date Thu, 12 Apr 2018 07:29:00 GMT

     [ https://issues.apache.org/jira/browse/AIRFLOW-2293?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Fokko Driesprong resolved AIRFLOW-2293.
---------------------------------------
       Resolution: Fixed
    Fix Version/s: 2.0.0

Issue resolved by pull request #3200
[https://github.com/apache/incubator-airflow/pull/3200]

> Fix S3FileTransformOperator to work with boto3
> ----------------------------------------------
>
>                 Key: AIRFLOW-2293
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-2293
>             Project: Apache Airflow
>          Issue Type: Bug
>          Components: aws, operators
>            Reporter: Kengo Seki
>            Assignee: Kengo Seki
>            Priority: Major
>             Fix For: 2.0.0
>
>
> Since [boto.s3.key.Key#get_contents_to_file()|http://boto.cloudhackers.com/en/latest/ref/s3.html#boto.s3.key.Key.get_contents_to_file]
is no longer supported by boto3, S3FileTransformOperator fails with the following error:
> {code}
> /home/sekikn/dev/incubator-airflow/airflow/operators/s3_file_transform_operator.py in
execute(self, context)
>      84                 self.source_s3_key, f_source.name
>      85             )
> ---> 86             source_s3_key_object.get_contents_to_file(f_source)
>      87             f_source.flush()
>      88             source_s3.connection.close()
> AttributeError: 's3.Object' object has no attribute 'get_contents_to_file'
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message