wget big data file (15+ GB) pipe to s3

I'm using wget to pipe straight from a url to S3 with the following command:

> wget -qO- '<url>' | aws s3 cp - s3://<bucket>/{data_file}

The is to a file, which can be anywhere from 10 to 20Gb in size. I've ran the process a couple of times with a Python script with the following:

os.system('wget -qO- '<url>' | aws s3 cp - s3://<bucket>/{data_file}')

When the process is complete I don't receive any errors, however the files in my s3 bucket are only ~4 or 5Gb in size, suggesting the entire file wasn't either read or written to the pipe.

I'm not sure what the problem is here. Has anyone had experience using wget to pipe big data files?

1 Reset to default

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like