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
Solved
Go to solution
SparkContext did not initialize after waiting for 100000 ms
Labels:
- Labels:
-
Apache Spark
-
Apache YARN
Contributor
Created ‎10-25-2017 08:12 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am trying to run a spark app in hdp cluster. My app keeps failing on:
ERROR ApplicationMaster: SparkContext did not initialize after waiting for 100000 ms. Please check earlier log output for errors. Failing the application.
In the previous lines the only error (which I see a few times in the log) is:
WARN DataSource: Error while looking for metadata directory.
Any ideas?
1 ACCEPTED SOLUTION
Contributor
Created ‎10-25-2017 02:24 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Found the issue. Turns out that since I run my spark application with
--master yarnI should remove this part from the SparkSession builder:
.master(masterUrl)
1 REPLY 1
Contributor
Created ‎10-25-2017 02:24 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Found the issue. Turns out that since I run my spark application with
--master yarnI should remove this part from the SparkSession builder:
.master(masterUrl)
