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:
Ruslan Dautkhanov 2017-01-20 14:16:58 -07:00 committed by U-CORP\rdautkhanov
parent 7941d37518
commit 6624c79c19

View file

@ -214,7 +214,7 @@ eval $INTERPRETER_RUN_COMMAND &
pid=$!
if [[ -z "${pid}" ]]; then
return 1;
exit 1;
else
echo ${pid} > ${ZEPPELIN_PID}
fi