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
dc8763fc
Commit
dc8763fc
authored
12 years ago
by
Matei Zaharia
Browse files
Options
Downloads
Patches
Plain Diff
Fixed SPARK_MEM not being passed when runner is java
parent
f6f917bd
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
run
+4
-1
4 additions, 1 deletion
run
with
4 additions
and
1 deletion
run
+
4
−
1
View file @
dc8763fc
...
...
@@ -78,6 +78,7 @@ export CLASSPATH # Needed for spark-shell
# when we exit, so we allow it to set a variable to launch with scala.
if
[
"
$SPARK_LAUNCH_WITH_SCALA
"
==
"1"
]
;
then
RUNNER
=
"
${
SCALA_HOME
}
/bin/scala"
EXTRA_ARGS
=
""
# Java options will be passed to scala as JAVA_OPTS
else
CLASSPATH+
=
":
$SCALA_HOME
/lib/scala-library.jar"
CLASSPATH+
=
":
$SCALA_HOME
/lib/scala-compiler.jar"
...
...
@@ -87,6 +88,8 @@ else
else
RUNNER
=
java
fi
# The JVM doesn't read JAVA_OPTS by default so we need to pass it in
EXTRA_ARGS
=
"
$JAVA_OPTS
"
fi
exec
"
$RUNNER
"
-cp
"
$CLASSPATH
"
"
$@
"
exec
"
$RUNNER
"
-cp
"
$CLASSPATH
"
$EXTRA_ARGS
"
$@
"
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