[jira] [Commented] (AIRFLOW-2293) Fix S3FileTransformOperator to work with boto3
[ https://issues.apache.org/jira/browse/AIRFLOW-2293?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16435051#comment-16435051 ] ASF subversion and git services commented on AIRFLOW-2293: -- Commit 5cb530b455be54e6b58eae19c8c10ef8f5cf955d in incubator-airflow's branch refs/heads/master from [~sekikn] [ https://git-wip-us.apache.org/repos/asf?p=incubator-airflow.git;h=5cb530b ] [AIRFLOW-2293] Fix S3FileTransformOperator to work with boto3 S3FileTransformOperator doen't work for now since it uses a function which is no longer supported by boto3. This PR replaces it with a valid function and adds an unit test for this operator. Closes #3200 from sekikn/AIRFLOW-2293 > 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)
[jira] [Commented] (AIRFLOW-2293) Fix S3FileTransformOperator to work with boto3
[ https://issues.apache.org/jira/browse/AIRFLOW-2293?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16435050#comment-16435050 ] ASF subversion and git services commented on AIRFLOW-2293: -- Commit 5cb530b455be54e6b58eae19c8c10ef8f5cf955d in incubator-airflow's branch refs/heads/master from [~sekikn] [ https://git-wip-us.apache.org/repos/asf?p=incubator-airflow.git;h=5cb530b ] [AIRFLOW-2293] Fix S3FileTransformOperator to work with boto3 S3FileTransformOperator doen't work for now since it uses a function which is no longer supported by boto3. This PR replaces it with a valid function and adds an unit test for this operator. Closes #3200 from sekikn/AIRFLOW-2293 > 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)