Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make databricks build.sh more convenient for dev #1838

Merged
merged 1 commit into from
Mar 1, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 10 additions & 5 deletions jenkins/databricks/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ SPARKSRCTGZ=$1
# version of Apache Spark we are building against
BASE_SPARK_VERSION=$2
BUILD_PROFILES=$3
BUILD_PROFILES=${BUILD_PROFILES:-'databricks301,!snapshot-shims'}
BASE_SPARK_VERSION=${BASE_SPARK_VERSION:-'3.0.1'}

echo "tgz is $SPARKSRCTGZ"
echo "Base Spark version is $BASE_SPARK_VERSION"
Expand All @@ -31,11 +33,14 @@ sudo apt install -y maven
# this has to match the Databricks init script
DB_JAR_LOC=/databricks/jars/

rm -rf spark-rapids
mkdir spark-rapids
echo "tar -zxvf $SPARKSRCTGZ -C spark-rapids"
tar -zxvf $SPARKSRCTGZ -C spark-rapids
cd spark-rapids
if [[ -n $SPARKSRCTGZ ]]
then
rm -rf spark-rapids
mkdir spark-rapids
echo "tar -zxvf $SPARKSRCTGZ -C spark-rapids"
tar -zxvf $SPARKSRCTGZ -C spark-rapids
cd spark-rapids
fi
export WORKSPACE=`pwd`

SPARK_PLUGIN_JAR_VERSION=`mvn help:evaluate -q -pl dist -Dexpression=project.version -DforceStdout`
Expand Down