You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@linkis.apache.org by ca...@apache.org on 2023/10/25 02:00:43 UTC
[linkis] 11/15: update checkAdd.sh : 1, format comments for ---1,---2,---3 2, Indicate parameter define files
This is an automated email from the ASF dual-hosted git repository.
casion pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/linkis.git
commit 510e17f8d7dc619c5b3515ee56210b48704f687b
Author: peter.peng <15...@qq.com>
AuthorDate: Thu Sep 28 05:22:28 2023 +0800
update checkAdd.sh :
1, format comments for ---1,---2,---3
2, Indicate parameter define files
---
linkis-dist/bin/checkAdd.sh | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/linkis-dist/bin/checkAdd.sh b/linkis-dist/bin/checkAdd.sh
index d665761be..d90a38f7b 100644
--- a/linkis-dist/bin/checkAdd.sh
+++ b/linkis-dist/bin/checkAdd.sh
@@ -48,8 +48,8 @@ function checkJDBC(){
exit 2
fi
- if [ ! -f ${MYSQL_CONNECT_JAVA_PATH} ];then
- echo "Mysql connector ${MYSQL_CONNECT_JAVA_PATH} is not exist"
+ if [ -z "${MYSQL_CONNECT_JAVA_PATH}" ] || [ ! -f ${MYSQL_CONNECT_JAVA_PATH} ];then
+ echo "openLooKeng connector ${MYSQL_CONNECT_JAVA_PATH} is not exist,Pls check parameters in ${LinkisParDir} "
exit 2
fi
@@ -116,10 +116,11 @@ function checkopenLooKeng(){
exit 2
fi
- if [ ! -f ${OLK_JDBC_PATH} ];then
- echo "openLooKeng connector ${OLK_JDBC_PATH} is not exist"
+ if [ -z "${OLK_JDBC_PATH}" ] || [ ! -f ${OLK_JDBC_PATH} ];then
+ echo "openLooKeng connector ${OLK_JDBC_PATH} is not exist,Pls check parameters in ${LinkisParDir} "
exit 2
fi
+
# 3. check server status
# 设置Java类路径,指向你所下载的MySQL JDBC驱动程序的JAR文件和其他依赖项
CLASSPATH=$CLASSPATH:${OLK_JDBC_PATH}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@linkis.apache.org
For additional commands, e-mail: commits-help@linkis.apache.org