Options
- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Error initializing SparkContext
Labels:
- Labels:
-
Apache Spark
-
Apache YARN
-
Training
Explorer
Created on ‎01-07-2017 06:36 AM - edited ‎09-16-2022 03:53 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
After I run that following command in Terminal I get an error that I can't solve.
Any ideas? tried to restart the Spark & Yarn services but didn't help.
[cloudera@quickstart ~]$ spark-shell --master yarn-client
ERROR spark.SparkContext: Error initializing SparkContext.
java.io.FileNotFoundException: File file:/user/spark/applicationHistory does not exist
1 REPLY 1
Champion
Created ‎01-09-2017 12:46 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I figured it had to do with history server but haven't dealt with this specifically. Never fear StackOverflow is here.0
The short is that the history server is enabled but the path it is trying to write to is not valid. Either give it a valid path or turn it off. I'd give it a valid path as it is how the UI contains all the wonderful information.
spark.eventLog.enabled=true
spark.eventLog.dir=/user/spark/applicationHistory (make sure it exist and the spark user as r/w access)
http://stackoverflow.com/questions/36038188/error-sparkcontext-error-initializing-sparkcontext
The short is that the history server is enabled but the path it is trying to write to is not valid. Either give it a valid path or turn it off. I'd give it a valid path as it is how the UI contains all the wonderful information.
spark.eventLog.enabled=true
spark.eventLog.dir=/user/spark/applicationHistory (make sure it exist and the spark user as r/w access)
http://stackoverflow.com/questions/36038188/error-sparkcontext-error-initializing-sparkcontext
