[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:
Mohamed Magdy 2017-12-08 18:50:49 +01:00
parent 0dacbf1c2f
commit aadd9b5f36

View file

@ -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();
}