HDDS-1912. start-ozone.sh fail due to ozone-config.sh not found. Contributed by kevin su.

This commit is contained in:
Márton Elek 2019-08-12 13:02:47 +02:00
parent 13a5803ccf
commit dfe772d234
No known key found for this signature in database
GPG Key ID: D51EA8F00EE79B28
1 changed files with 5 additions and 0 deletions

View File

@ -42,6 +42,11 @@ HADOOP_NEW_CONFIG=true
if [[ -f "${HADOOP_LIBEXEC_DIR}/ozone-config.sh" ]]; then
# shellcheck disable=SC1090
. "${HADOOP_LIBEXEC_DIR}/ozone-config.sh"
elif [[ -f "${bin}/../libexec/ozone-config.sh" ]]; then
HADOOP_HOME="${bin}/../"
HADOOP_LIBEXEC_DIR="${HADOOP_HOME}/libexec"
HADOOP_DEFAULT_LIBEXEC_DIR="${HADOOP_HOME}/libexec"
. "${HADOOP_LIBEXEC_DIR}/ozone-config.sh"
else
echo "ERROR: Cannot execute ${HADOOP_LIBEXEC_DIR}/ozone-config.sh." 2>&1
exit 1