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
7e74ab5b
Commit
7e74ab5b
authored
11 years ago
by
Matei Zaharia
Browse files
Options
Downloads
Plain Diff
Merge remote-tracking branch 'origin/pr/704'
Conflicts: make-distribution.sh
parents
4ff494de
90b01429
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitignore
+2
-0
2 additions, 0 deletions
.gitignore
make-distribution.sh
+21
-3
21 additions, 3 deletions
make-distribution.sh
with
23 additions
and
3 deletions
.gitignore
+
2
−
0
View file @
7e74ab5b
...
@@ -38,3 +38,5 @@ dependency-reduced-pom.xml
...
@@ -38,3 +38,5 @@ dependency-reduced-pom.xml
.ensime_lucene
.ensime_lucene
checkpoint
checkpoint
derby.log
derby.log
dist/
spark-*-bin.tar.gz
This diff is collapsed.
Click to expand it.
make-distribution.sh
+
21
−
3
View file @
7e74ab5b
#!/
bin/
bash
#!/
usr/bin/env
bash
#
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# Licensed to the Apache Software Foundation (ASF) under one or more
...
@@ -24,6 +24,10 @@
...
@@ -24,6 +24,10 @@
# so it is completely self contained.
# so it is completely self contained.
# It does not contain source or *.class files.
# It does not contain source or *.class files.
#
#
# Arguments
# (none): Creates dist/ directory
# tgz: Additionally creates spark-$VERSION-bin.tar.gz
#
# Recommended deploy/testing procedure (standalone mode):
# Recommended deploy/testing procedure (standalone mode):
# 1) Rsync / deploy the dist/ dir to one host
# 1) Rsync / deploy the dist/ dir to one host
# 2) cd to deploy dir; ./bin/start-master.sh
# 2) cd to deploy dir; ./bin/start-master.sh
...
@@ -38,8 +42,14 @@ DISTDIR="$FWDIR/dist"
...
@@ -38,8 +42,14 @@ DISTDIR="$FWDIR/dist"
# Get version from SBT
# Get version from SBT
export
TERM
=
dumb
# Prevents color codes in SBT output
export
TERM
=
dumb
# Prevents color codes in SBT output
VERSION
=
$(
$FWDIR
/sbt/sbt
"show version"
|
tail
-1
|
cut
-f
2
)
VERSION
=
$(
$FWDIR
/sbt/sbt
"show version"
|
tail
-1
|
cut
-f
2 |
sed
's/^\([a-zA-Z0-9.-]*\).*/\1/'
)
echo
"Making distribution for Spark
$VERSION
in
$DISTDIR
..."
if
[
"
$1
"
==
"tgz"
]
;
then
echo
"Making spark-
$VERSION
-bin.tar.gz"
else
echo
"Making distribution for Spark
$VERSION
in
$DISTDIR
..."
fi
# Build fat JAR
# Build fat JAR
$FWDIR
/sbt/sbt
"repl/assembly"
$FWDIR
/sbt/sbt
"repl/assembly"
...
@@ -56,3 +66,11 @@ cp $FWDIR/repl/target/*.jar "$DISTDIR/jars/"
...
@@ -56,3 +66,11 @@ cp $FWDIR/repl/target/*.jar "$DISTDIR/jars/"
cp
-r
"
$FWDIR
/bin"
"
$DISTDIR
"
cp
-r
"
$FWDIR
/bin"
"
$DISTDIR
"
cp
-r
"
$FWDIR
/conf"
"
$DISTDIR
"
cp
-r
"
$FWDIR
/conf"
"
$DISTDIR
"
cp
"
$FWDIR
/run"
"
$FWDIR
/spark-shell"
"
$DISTDIR
"
cp
"
$FWDIR
/run"
"
$FWDIR
/spark-shell"
"
$DISTDIR
"
if
[
"
$1
"
==
"tgz"
]
;
then
TARDIR
=
"
$FWDIR
/spark-
$VERSION
"
cp
-r
$DISTDIR
$TARDIR
tar
-zcf
spark-
$VERSION
-bin
.tar.gz
-C
$FWDIR
spark-
$VERSION
rm
-rf
$TARDIR
fi
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