mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
fix for ZEPPELIN-1984
https://issues.apache.org/jira/browse/ZEPPELIN-1984 {quote} DEBUG [2017-01-20 13:56:37,688] ({Exec Stream Pumper} RemoteInterpreterManagedProcess.java[processLine]:189) - /opt/zeppelin/zeppelin-active/bin/interpreter.sh: line 207: return: can only `return' from a function or sourced script INFO [2017-01-20 13:56:37,690] ({Exec Default Executor} RemoteInterpreterManagedProcess.java[onProcessComplete]:164) - Interpreter process exited 0 {quote} So `return 0` outside of function is not correct and gets ignored by shell interpreters, also it causes Zeppelin to not catch situations when interpreter hasn't started, as shown in ZEPPELIN-1984.
This commit is contained in:
parent
7941d37518
commit
6624c79c19
1 changed files with 1 additions and 1 deletions
|
|
@ -214,7 +214,7 @@ eval $INTERPRETER_RUN_COMMAND &
|
|||
|
||||
pid=$!
|
||||
if [[ -z "${pid}" ]]; then
|
||||
return 1;
|
||||
exit 1;
|
||||
else
|
||||
echo ${pid} > ${ZEPPELIN_PID}
|
||||
fi
|
||||
|
|
|
|||
Loading…
Reference in a new issue