Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
spark
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cs525-sp18-g07
spark
Commits
bd2ab635
Commit
bd2ab635
authored
12 years ago
by
Matei Zaharia
Browse files
Options
Downloads
Patches
Plain Diff
Fixed the way the JAR server is created after finding issue at Twitter
parent
a69c0738
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
core/src/main/scala/spark/MesosScheduler.scala
+5
-6
5 additions, 6 deletions
core/src/main/scala/spark/MesosScheduler.scala
with
5 additions
and
6 deletions
core/src/main/scala/spark/MesosScheduler.scala
+
5
−
6
View file @
bd2ab635
...
...
@@ -99,11 +99,6 @@ private class MesosScheduler(
}
override
def
start
()
{
if
(
sc
.
jars
.
size
>
0
)
{
// If the user added any JARS to the SparkContext, create an HTTP server
// to serve them to our executors
createJarServer
()
}
new
Thread
(
"Spark scheduler"
)
{
setDaemon
(
true
)
override
def
run
{
...
...
@@ -125,7 +120,11 @@ private class MesosScheduler(
case
Some
(
path
)
=>
path
case
None
=>
throw
new
SparkException
(
"Spark home is not set; set it through the spark.home system "
+
"property, the SPARK_HOME environment variable or the SparkContext constructor"
)
"property, the SPARK_HOME environment variable or the SparkContext constructor"
)
}
// If the user added JARs to the SparkContext, create an HTTP server to ship them to executors
if
(
sc
.
jars
.
size
>
0
)
{
createJarServer
()
}
val
execScript
=
new
File
(
sparkHome
,
"spark-executor"
).
getCanonicalPath
val
environment
=
Environment
.
newBuilder
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment