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
66e7a38a
Commit
66e7a38a
authored
11 years ago
by
Jey Kottalam
Browse files
Options
Downloads
Patches
Plain Diff
Allow build configuration to be set in conf/spark-env.sh
parent
31644a01
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
conf/spark-env.sh.template
+9
-1
9 additions, 1 deletion
conf/spark-env.sh.template
make-distribution.sh
+5
-0
5 additions, 0 deletions
make-distribution.sh
sbt/sbt
+9
-6
9 additions, 6 deletions
sbt/sbt
with
23 additions
and
7 deletions
conf/spark-env.sh.template
+
9
−
1
View file @
66e7a38a
...
...
@@ -19,6 +19,14 @@
# - SPARK_JAVA_OPTS, to set the jvm options for executor backend. Note: This is
# only for node-specific options, whereas app-specific options should be set
# in the application.
# Examples of node-spe
i
cic options : -Dspark.local.dir, GC related options.
# Examples of node-spec
if
ic options : -Dspark.local.dir, GC related options.
# Examples of app-specific options : -Dspark.serializer
# Hadoop version to build against
# export SPARK_HADOOP_VERSION=1.0.4
# Uncomment this when using a Hadoop version with YARN
# export SPARK_WITH_YARN=true
# Extra arguments to pass to `java` when building with SBT
# export EXTRA_BUILD_ARGS="$EXTRA_BUILD_ARGS -Xmx8g"
This diff is collapsed.
Click to expand it.
make-distribution.sh
+
5
−
0
View file @
66e7a38a
...
...
@@ -50,6 +50,11 @@ SPARK_HADOOP_VERSION=1.0.4
SPARK_WITH_YARN
=
false
MAKE_TGZ
=
false
# Load configuration
if
[
-f
"
$FWDIR
/conf/spark-env.sh"
]
;
then
source
"
$FWDIR
/conf/spark-env.sh"
fi
# Parse arguments
while
((
"$#"
))
;
do
case
$1
in
...
...
This diff is collapsed.
Click to expand it.
sbt/sbt
+
9
−
6
View file @
66e7a38a
...
...
@@ -17,12 +17,15 @@
# limitations under the License.
#
EXTRA_ARGS
=
""
if
[
"
$MESOS_HOME
"
!=
""
]
;
then
EXTRA_ARGS
=
"-Djava.library.path=
$MESOS_HOME
/lib/java"
fi
export
SPARK_HOME
=
$(
cd
"
$(
dirname
$0
)
/.."
2>&1
>
/dev/null
;
pwd
)
export
SPARK_TESTING
=
1
# To put test classes on classpath
java
-Xmx1200m
-XX
:MaxPermSize
=
350m
-XX
:ReservedCodeCacheSize
=
128m
$EXTRA_ARGS
-jar
$SPARK_HOME
/sbt/sbt-launch-
*
.jar
"
$@
"
if
[
-f
"
$SPARK_HOME
/conf/spark-env.sh"
]
;
then
source
"
$SPARK_HOME
/conf/spark-env.sh"
fi
if
[
"
$MESOS_HOME
"
!=
""
]
;
then
EXTRA_BUILD_ARGS
=
"
$EXTRA_BUILD_ARGS
-Djava.library.path=
$MESOS_HOME
/lib/java"
fi
java
-Xmx1200m
-XX
:MaxPermSize
=
350m
-XX
:ReservedCodeCacheSize
=
128m
$EXTRA_BUILD_ARGS
-jar
$SPARK_HOME
/sbt/sbt-launch-
*
.jar
"
$@
"
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