From b99a2240761a380931cd36136cfeea4f8c4483cd Mon Sep 17 00:00:00 2001 From: Ada Wong Date: Wed, 2 Mar 2022 19:12:54 +0800 Subject: [PATCH] [KYUUBI #1992] Remove SPARK_HOME predication. ### _Why are the changes needed?_ Users who use Flink or Trino need not set SPARK_HOME, so I remove SPARK_HOME predication in bin/kyuubi script. ### _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 - [x] [Run test](https://kyuubi.apache.org/docs/latest/develop_tools/testing.html#running-tests) locally before make a pull request Closes #1994 from deadwind4/KYUUBI-1992. Closes #1992 5f11df57 [Ada Wong] [KYUUBI #1992] Remove SPARK_HOME predication. Authored-by: Ada Wong Signed-off-by: Kent Yao --- bin/kyuubi | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/bin/kyuubi b/bin/kyuubi index 02672323f..edd5465ed 100755 --- a/bin/kyuubi +++ b/bin/kyuubi @@ -74,19 +74,6 @@ if [[ -z ${JAVA_HOME} ]]; then exit 1 fi -if [[ -z ${SPARK_HOME} ]]; then - echo "Error: SPARK_HOME IS NOT SET! CANNOT PROCEED." >&2 - exit 1 -elif [[ ! -d ${SPARK_HOME} ]]; then - echo "Error: SPARK_HOME[${SPARK_HOME}] DOES NOT EXIST! CANNOT PROCEED." >&2 - exit 1 -else - if [[ ! -x "${SPARK_HOME}/bin/spark-submit" ]]; then - echo "Error: INVALID SPARK DISTRIBUTION! CANNOT PROCEED." >&2 - exit 1 - fi -fi - RUNNER="${JAVA_HOME}/bin/java" ## Find the Kyuubi Jar