You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Kengo Seki (JIRA)" <ji...@apache.org> on 2018/04/09 18:38:00 UTC

[jira] [Assigned] (AIRFLOW-2293) Fix S3FileTransformOperator to work with boto3

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

Kengo Seki reassigned AIRFLOW-2293:
-----------------------------------

    Assignee: Kengo Seki

> 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
>
> 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)