commoncrawl / cc-mrjob

Demonstration of using Python to process the Common Crawl dataset with the mrjob framework
MIT License
166 stars 65 forks source link

Upgrade to use boto3 #18

Closed sebastian-nagel closed 6 years ago

sebastian-nagel commented 6 years ago

cc-pyspark already uses boto3 to download data from s3://commoncrawl/: faster multi-part downloads and less errors (timeouts, "503 slow down"). The upgrade should improve the performance and robustness of cc-mrjob.

sebastian-nagel commented 6 years ago

First working solution available in branch boto3. Uses a temporary file and s3.client.download_fileobj(...) to fetch the data from S3: