mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
[ZEPPELIN-3092] Revert back ZeppelinServer changes
The changes were removed because it was closing the local server when any key is pressed in the console.
This commit is contained in:
parent
0dacbf1c2f
commit
aadd9b5f36
1 changed files with 12 additions and 0 deletions
|
|
@ -209,6 +209,18 @@ public class ZeppelinServer extends Application {
|
|||
}
|
||||
});
|
||||
|
||||
|
||||
// when zeppelin is started inside of ide (especially for eclipse)
|
||||
// for graceful shutdown, input any key in console window
|
||||
if (System.getenv("ZEPPELIN_IDENT_STRING") == null) {
|
||||
try {
|
||||
System.in.read();
|
||||
} catch (IOException e) {
|
||||
LOG.error("Exception in ZeppelinServer while main ", e);
|
||||
}
|
||||
System.exit(0);
|
||||
}
|
||||
|
||||
jettyWebServer.join();
|
||||
ZeppelinServer.notebook.getInterpreterSettingManager().close();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue