Skip to content

Commit b99a224

Browse files
a49ayaooqinn
authored andcommitted
[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 5f11df5 [Ada Wong] [KYUUBI #1992] Remove SPARK_HOME predication. Authored-by: Ada Wong <rsl4@foxmail.com> Signed-off-by: Kent Yao <yao@apache.org>
1 parent 4148e5b commit b99a224

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

bin/kyuubi

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -74,19 +74,6 @@ if [[ -z ${JAVA_HOME} ]]; then
7474
exit 1
7575
fi
7676

77-
if [[ -z ${SPARK_HOME} ]]; then
78-
echo "Error: SPARK_HOME IS NOT SET! CANNOT PROCEED." >&2
79-
exit 1
80-
elif [[ ! -d ${SPARK_HOME} ]]; then
81-
echo "Error: SPARK_HOME[${SPARK_HOME}] DOES NOT EXIST! CANNOT PROCEED." >&2
82-
exit 1
83-
else
84-
if [[ ! -x "${SPARK_HOME}/bin/spark-submit" ]]; then
85-
echo "Error: INVALID SPARK DISTRIBUTION! CANNOT PROCEED." >&2
86-
exit 1
87-
fi
88-
fi
89-
9077
RUNNER="${JAVA_HOME}/bin/java"
9178

9279
## Find the Kyuubi Jar

0 commit comments

Comments
 (0)