You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kyuubi.apache.org by ch...@apache.org on 2022/07/10 18:04:18 UTC
[incubator-kyuubi] branch branch-1.5 updated: [KYUUBI #3033][Bug] Kyuubi failed to start due to PID directory not exists
This is an automated email from the ASF dual-hosted git repository.
chengpan pushed a commit to branch branch-1.5
in repository https://gitbox.apache.org/repos/asf/incubator-kyuubi.git
The following commit(s) were added to refs/heads/branch-1.5 by this push:
new 480dbab74 [KYUUBI #3033][Bug] Kyuubi failed to start due to PID directory not exists
480dbab74 is described below
commit 480dbab747dfcf2120bf82d1517b4f3bfd4c6720
Author: zhouyifan279 <zh...@gmail.com>
AuthorDate: Mon Jul 11 02:03:54 2022 +0800
[KYUUBI #3033][Bug] Kyuubi failed to start due to PID directory not exists
Signed-off-by: zhouyifan279 <zhouyifan279gmail.com>
### _Why are the changes needed?_
Fix #3033
### _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 #3034 from zhouyifan279/3033.
Closes #3033
646e0dbc [zhouyifan279] [KYUUBI #3033][Bug] Kyuubi failed to start due to PID directory not exists
Authored-by: zhouyifan279 <zh...@gmail.com>
Signed-off-by: Cheng Pan <ch...@apache.org>
(cherry picked from commit d3446675ac2cbbc2001325c83e401dd1caf8ab75)
Signed-off-by: Cheng Pan <ch...@apache.org>
---
bin/load-kyuubi-env.sh | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/bin/load-kyuubi-env.sh b/bin/load-kyuubi-env.sh
index 7d65cca6f..41de18189 100755
--- a/bin/load-kyuubi-env.sh
+++ b/bin/load-kyuubi-env.sh
@@ -48,17 +48,17 @@ else
fi
export KYUUBI_LOG_DIR="${KYUUBI_LOG_DIR:-"${KYUUBI_HOME}/logs"}"
-if [[ -e ${KYUUBI_LOG_DIR} ]]; then
+if [[ ! -e ${KYUUBI_LOG_DIR} ]]; then
mkdir -p ${KYUUBI_LOG_DIR}
fi
export KYUUBI_PID_DIR="${KYUUBI_PID_DIR:-"${KYUUBI_HOME}/pid"}"
-if [[ -e ${KYUUBI_LOG_DIR} ]]; then
- mkdir -p ${KYUUBI_LOG_DIR}
+if [[ ! -e ${KYUUBI_PID_DIR} ]]; then
+ mkdir -p ${KYUUBI_PID_DIR}
fi
export KYUUBI_WORK_DIR_ROOT="${KYUUBI_WORK_DIR_ROOT:-"${KYUUBI_HOME}/work"}"
-if [[ -e ${KYUUBI_WORK_DIR_ROOT} ]]; then
+if [[ ! -e ${KYUUBI_WORK_DIR_ROOT} ]]; then
mkdir -p ${KYUUBI_WORK_DIR_ROOT}
fi