downloading a file from Internet into S3 bucket

后端 未结 4 1784
無奈伤痛
無奈伤痛 2020-12-29 04:12

I would like to grab a file straight of the Internet and stick it into an S3 bucket to then copy it over to a PIG cluster. Due to the size of the file and my not so good int

4条回答
  •  天涯浪人
    2020-12-29 04:30

    [2017 edit] I gave the original answer back at 2013. Today I'd recommend using AWS Lambda to download a file and put it on S3. It's the desired effect - to place an object on S3 with no server involved.

    [Original answer] It is not possible to do it directly.

    Why not do this with EC2 instance instead of your local PC? Upload speed from EC2 to S3 in the same region is very good.

    regarding stream reading/writing from/to s3 I use python's smart_open

提交回复
热议问题