[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 <rsl4@foxmail.com>
Signed-off-by: Kent Yao <yao@apache.org>
This commit is contained in:
Ada Wong 2022-03-02 19:12:54 +08:00 committed by Kent Yao
parent 4148e5bd8d
commit b99a224076
No known key found for this signature in database
GPG Key ID: F7051850A0AF904D

View File

@ -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