mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
Fix typo, log exit value of a succesful shell commnad
This commit is contained in:
parent
351888d108
commit
d259c48e44
2 changed files with 4 additions and 2 deletions
|
|
@ -79,7 +79,9 @@ public class ShellInterpreter extends Interpreter {
|
|||
Map<String, Object> info = runningJob.info();
|
||||
info.put(EXECUTOR_KEY, executor);
|
||||
try {
|
||||
executor.execute(cmdLine);
|
||||
int exitVal = executor.execute(cmdLine);
|
||||
logger.info("Paragraph " + contextInterpreter.getParagraphId()
|
||||
+ "return with exit value: " + exitVal);
|
||||
return new InterpreterResult(InterpreterResult.Code.SUCCESS, outputStream.toString());
|
||||
} catch (ExecuteException e) {
|
||||
int exitValue = e.getExitValue();
|
||||
|
|
|
|||
|
|
@ -256,7 +256,7 @@ public class RemoteInterpreterProcess implements ExecuteResultHandler {
|
|||
|
||||
public void setMaxPoolSize(int size) {
|
||||
if (clientPool != null) {
|
||||
//Size + 2 for progress poller , cancel opeartion
|
||||
//Size + 2 for progress poller , cancel operation
|
||||
clientPool.setMaxTotal(size + 2);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue