Skip to content
Snippets Groups Projects
Commit 7e74ab5b authored by Matei Zaharia's avatar Matei Zaharia
Browse files

Merge remote-tracking branch 'origin/pr/704'

Conflicts:
	make-distribution.sh
parents 4ff494de 90b01429
No related branches found
No related tags found
No related merge requests found
...@@ -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
#!/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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment