Added log statements for configuration

This commit is contained in:
rajarajan-g 2016-09-02 14:51:03 +05:30
parent b89e35e01f
commit da69b165df
2 changed files with 8 additions and 0 deletions

View file

@ -190,6 +190,7 @@ function start() {
wait_zeppelin_is_up_for_ci
sleep 2
check_if_process_is_alive
echo "ZEPPELIN_CLASSPATH: ${ZEPPELIN_CLASSPATH}" >> "${ZEPPELIN_LOGFILE}"
}
function stop() {
@ -254,6 +255,7 @@ case "${1}" in
start
;;
restart)
echo "${ZEPPELIN_NAME} is restarted" >> "${ZEPPELIN_LOGFILE}"
stop
start
;;

View file

@ -27,6 +27,7 @@ import org.apache.commons.configuration.ConfigurationException;
import org.apache.commons.configuration.XMLConfiguration;
import org.apache.commons.configuration.tree.ConfigurationNode;
import org.apache.zeppelin.notebook.repo.VFSNotebookRepo;
import org.apache.zeppelin.util.Util;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@ -102,6 +103,11 @@ public class ZeppelinConfiguration extends XMLConfiguration {
conf = new ZeppelinConfiguration();
}
}
LOG.info("Server Host: " + conf.getServerAddress());
LOG.info("Server Port: " + conf.getServerPort());
LOG.info("Context Path: " + conf.getServerContextPath());
LOG.info("Zeppelin Version: " + Util.getVersion());
return conf;
}