[ZEPPELIN-1530] Add missing environment variables on common scripts

Review and syncronize missing variables on common scripts for
Linux and Windows platforms
This commit is contained in:
Luciano Resende 2016-12-01 10:13:16 -08:00
parent 3a5d1c2196
commit 08267505ee
2 changed files with 12 additions and 5 deletions

View file

@ -29,10 +29,6 @@ if not defined ZEPPELIN_LOG_DIR (
set ZEPPELIN_LOG_DIR=%ZEPPELIN_HOME%\logs
)
if not defined ZEPPELIN_NOTEBOOK_DIR (
set ZEPPELIN_NOTEBOOK_DIR=%ZEPPELIN_HOME%\notebook
)
if not defined ZEPPELIN_PID_DIR (
set ZEPPELIN_PID_DIR=%ZEPPELIN_HOME%\run
)
@ -47,6 +43,10 @@ if not defined ZEPPELIN_WAR (
)
)
if not defined ZEPPELIN_NOTEBOOK_DIR (
set ZEPPELIN_NOTEBOOK_DIR=%ZEPPELIN_HOME%\notebook
)
if not defined ZEPPELIN_INTERPRETER_DIR (
set ZEPPELIN_INTERPRETER_DIR=%ZEPPELIN_HOME%\interpreter
)

View file

@ -48,6 +48,10 @@ if [[ -z "${ZEPPELIN_WAR}" ]]; then
fi
fi
if [[ -z "$ZEPPELIN_NOTEBOOK_DIR" ]]; then
export ZEPPELIN_NOTEBOOK_DIR="${ZEPPELIN_HOME}/notebook"
fi
if [[ -z "$ZEPPELIN_INTERPRETER_DIR" ]]; then
export ZEPPELIN_INTERPRETER_DIR="${ZEPPELIN_HOME}/interpreter"
fi
@ -135,9 +139,12 @@ if [[ -n "${JAVA_HOME}" ]]; then
else
ZEPPELIN_RUNNER=java
fi
export ZEPPELIN_RUNNER
if [[ -z "$ZEPPELIN_IDENT_STRING" ]]; then
export ZEPPELIN_IDENT_STRING="${USER}"
fi
if [[ -z "$ZEPPELIN_INTERPRETER_REMOTE_RUNNER" ]]; then
export ZEPPELIN_INTERPRETER_REMOTE_RUNNER="bin/interpreter.sh"
fi