Comments (5)
Hi @praveenr019, given the error message "botocore.exceptions.NoCredentialsError: Unable to locate credentials": is the job run on a Spark cluster or on a single instance? If on a cluster: how are the credentials deployed to the cluster instances (eg. via IAM roles)?
- see https://github.com/commoncrawl/cc-pyspark#authenticated-s3-access-or-access-via-http
- if not running on AWS: use
--input_base_url https://data.commoncrawl.org/
from cc-pyspark.
If on a single instance: I haven't seen a credential error just because of processing more data. How are the credentials configured?
from cc-pyspark.
Thanks for the reply @sebastian-nagel. Yes, the job is run on a Spark cluster in AWS and the credentials are setup using IAM roles.
from cc-pyspark.
No glue what could be the reason. And never seen this.
My assumption is that in cluster mode, every Python runner is a separate process. This would exclude any concurrency issues while fetching the credentials (for example here).
To address the problem, I'd catch the NoCredentialsError along the ClientError (sparkcc.py, line 283), log the error, re-instantiate the S3 client and try the download a second time. Let me know if you need help to implement this. Otherwise, would be interesting to hear whether this solves the problem.
from cc-pyspark.
Closing for now. @praveenr019 let me know if this is still an issue!
from cc-pyspark.
Related Issues (20)
- CCIndexWarcSparkJob requires one of --query or --csv
- Webgraph construction: include nodes with zero outgoing links
- Processing English only archives HOT 2
- Common Crawl Index Table - Need for Schema Merging to be documented HOT 2
- Test and update examples to work with ARC files of the 2008 - 2012 crawls
- Broken links in README HOT 1
- Use SparkSession instead of SQLContext HOT 5
- How To: process CC NEWS warc files, most recent first HOT 3
- Can not run server_count example on Windows locally HOT 6
- download only specific language data from wet files like Warc HOT 1
- Class org.apache.hadoop.fs.s3a.S3AFileSystem not found HOT 2
- Bad Substitution HOT 3
- Incompatible Architecture HOT 4
- Host link extraction does not represent every IDN as IDNA
- Provide classes to use FastWARC to read WARC/WAT/WET files
- Looks like ccspark tried to access everything from local file. What's wrong with the settings? HOT 1
- Drop support for Python 2.7 HOT 1
- Use simdjson to read WAT payloads
- Example using Resiliparse's HTML parser or text extractor
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cc-pyspark.