mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
added logs on opening and closing interpreter
This commit is contained in:
parent
53011dc544
commit
8a33ea5ea4
1 changed files with 6 additions and 1 deletions
|
|
@ -72,6 +72,9 @@ public class TachyonInterpreter extends Interpreter {
|
|||
|
||||
@Override
|
||||
public void open() {
|
||||
logger.info("Starting Tachyon shell to connect to " + tachyonMasterHostname +
|
||||
" on port " + tachyonMasterPort);
|
||||
|
||||
System.setProperty(TACHYON_MASTER_HOSTNAME, tachyonMasterHostname);
|
||||
System.setProperty(TACHYON_MASTER_PORT, tachyonMasterPort);
|
||||
tfs = new TfsShell(new TachyonConf());
|
||||
|
|
@ -79,10 +82,12 @@ public class TachyonInterpreter extends Interpreter {
|
|||
|
||||
@Override
|
||||
public void close() {
|
||||
logger.info("Closing Tachyon shell");
|
||||
|
||||
try {
|
||||
tfs.close();
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
logger.error("Cannot close connection", e);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue