mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
ZEPPELIN-2841 fix a bug where shell interpreter complained that working directory '.' can not be found while zeppelin was running in docker enviroment.
This commit is contained in:
parent
d02104ac58
commit
34a00498d0
1 changed files with 2 additions and 0 deletions
|
|
@ -20,6 +20,7 @@ package org.apache.zeppelin.shell;
|
|||
import java.io.ByteArrayOutputStream;
|
||||
import java.io.IOException;
|
||||
import java.io.OutputStream;
|
||||
import java.io.File;
|
||||
import java.util.List;
|
||||
import java.util.Properties;
|
||||
import java.util.concurrent.ConcurrentHashMap;
|
||||
|
|
@ -98,6 +99,7 @@ public class ShellInterpreter extends KerberosInterpreter {
|
|||
contextInterpreter.out, contextInterpreter.out));
|
||||
executor.setWatchdog(new ExecuteWatchdog(Long.valueOf(getProperty(TIMEOUT_PROPERTY))));
|
||||
executors.put(contextInterpreter.getParagraphId(), executor);
|
||||
executor.setWorkingDirectory(new File(System.getProperty("user.home")));
|
||||
int exitVal = executor.execute(cmdLine);
|
||||
LOGGER.info("Paragraph " + contextInterpreter.getParagraphId()
|
||||
+ " return with exit value: " + exitVal);
|
||||
|
|
|
|||
Loading…
Reference in a new issue