forked from 4paradigm/OpenMLDB
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: download openmldb spark distribution in java cicd (4paradigm#1111)
Add script to download openmldb spark distribution Download and extract spark files in cicd of java This is useful for unit tests of TaskManager which requires TaskManager with Spark to run test cases.
- Loading branch information
1 parent
59d4a89
commit c4e9050
Showing
3 changed files
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/bash | ||
|
||
set -xe | ||
|
||
SPARK_HOME_PATH=$1 | ||
|
||
# Download OpenMLDB Spark distribution | ||
curl -L -o spark-3.0.0-bin-openmldbspark.tgz https://github.com/4paradigm/spark/releases/download/v3.0.0-openmldb0.4.0/spark-3.0.0-bin-openmldbspark.tgz | ||
tar xzf ./spark-3.0.0-bin-openmldbspark.tgz | ||
|
||
# Move Spark files to $SPARK_HOME | ||
mv ./spark-3.0.0-bin-openmldbspark/ "$SPARK_HOME_PATH" | ||
|
||
rm ./spark-3.0.0-bin-openmldbspark.tgz |