airflow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kengo Seki (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (AIRFLOW-2293) Fix S3FileTransformOperator to work with boto3
Date Mon, 09 Apr 2018 18:38:00 GMT

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

Mime
View raw message