[KYUUBI #357] [Kyuubi-1.0] Update built-in Spark version to 3.0.2
 [](https://github.com/yaooqinn/kyuubi/pull/357)      [❨?❩](https://pullrequestbadge.com/?utm_medium=github&utm_source=yaooqinn&utm_campaign=badge_info)<!-- PR-BADGE: PLEASE DO NOT REMOVE THIS COMMENT --> backport [#356](https://github.com/yaooqinn/kyuubi/pull/356) for branch-1.0. <!-- Thanks for sending a pull request! Here are some tips for you: 1. If this is your first time, please read our contributor guidelines: https://kyuubi.readthedocs.io/en/latest/community/contributions.html 2. If the PR is related to an issue in https://github.com/yaooqinn/kyuubi/issues, add '[KYUUBI #XXXX]' in your PR title, e.g., '[KYUUBI #XXXX] Your PR title ...'. 3. If the PR is unfinished, add '[WIP]' in your PR title, e.g., '[WIP][KYUUBI #XXXX] Your PR title ...'. --> ### _Why are the changes needed?_ <!-- Please clarify why the changes are needed. For instance, 1. If you add a feature, you can talk about the use case of it. 2. If you fix a bug, you can clarify why it is a bug. --> Spark 3.0.2 has been released now. ### _How was this patch tested?_ - [ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible - [ ] Add screenshots for manual tests if appropriate - [ ] [Run test](https://kyuubi.readthedocs.io/en/latest/tools/testing.html#running-tests) locally before make a pull request Closes #357 from ulysses-you/branch-1.0-spark-3.0.2. b5d4442 [ulysses-you] sync 2c5ee8e [ulysses-you] 3.0.2 Authored-by: ulysses-you <ulyssesyou18@gmail.com> Signed-off-by: Kent Yao <yao@apache.org>
This commit is contained in:
parent
b1a53a9eb2
commit
3268a7e588
@ -66,7 +66,16 @@ fi
|
||||
SPARK_BUILTIN="${KYUUBI_HOME}/externals/spark-$SPARK_VERSION_BUILD-bin-hadoop${HADOOP_VERSION_BUILD:0:3}$HIVE_VERSION_SUFFIX"
|
||||
|
||||
if [[ ! -d ${SPARK_BUILTIN} ]]; then
|
||||
SPARK_BUILTIN="${KYUUBI_HOME}/externals/kyuubi-download/target/spark-3.0.1-bin-hadoop2.7"
|
||||
MVN="${MVN:-"${KYUUBI_HOME}/build/mvn"}"
|
||||
SPARK_VERSION_BUILD=$("$MVN" help:evaluate -Dexpression=spark.version 2>/dev/null\
|
||||
| grep -v "INFO"\
|
||||
| grep -v "WARNING"\
|
||||
| tail -n 1)
|
||||
HADOOP_VERSION_BUILD=$("$MVN" help:evaluate -Dexpression=hadoop.version 2>/dev/null\
|
||||
| grep -v "INFO"\
|
||||
| grep -v "WARNING"\
|
||||
| tail -n 1)
|
||||
SPARK_BUILTIN="${KYUUBI_HOME}/externals/kyuubi-download/target/spark-$SPARK_VERSION_BUILD-bin-hadoop${HADOOP_VERSION_BUILD:0:3}"
|
||||
fi
|
||||
|
||||
export SPARK_HOME="${SPARK_HOME:-"${SPARK_BUILTIN}"}"
|
||||
|
||||
@ -28,4 +28,4 @@ For instance,
|
||||
./build/dist --name custom-name --tgz
|
||||
```
|
||||
|
||||
This results a Kyuubi distribution named `kyuubi-{version}-bin-custom-name-spark-3.0.1.tar.gz` for you.
|
||||
This results a Kyuubi distribution named `kyuubi-{version}-bin-custom-name.tar.gz` for you.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user