Skip to content

Commit f4f7f44

Browse files
committed
updated as per review comments
1 parent da69b16 commit f4f7f44

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

bin/zeppelin-daemon.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,8 @@ function upstart() {
161161
# where the service manager starts and stops the process
162162
initialize_default_directories
163163

164+
echo "ZEPPELIN_CLASSPATH: ${ZEPPELIN_CLASSPATH_OVERRIDES}:${CLASSPATH}" >> "${ZEPPELIN_OUTFILE}"
165+
164166
$ZEPPELIN_RUNNER $JAVA_OPTS -cp $ZEPPELIN_CLASSPATH_OVERRIDES:$CLASSPATH $ZEPPELIN_MAIN >> "${ZEPPELIN_OUTFILE}"
165167
}
166168

@@ -177,6 +179,8 @@ function start() {
177179

178180
initialize_default_directories
179181

182+
echo "ZEPPELIN_CLASSPATH: ${ZEPPELIN_CLASSPATH_OVERRIDES}:${CLASSPATH}" >> "${ZEPPELIN_OUTFILE}"
183+
180184
nohup nice -n $ZEPPELIN_NICENESS $ZEPPELIN_RUNNER $JAVA_OPTS -cp $ZEPPELIN_CLASSPATH_OVERRIDES:$CLASSPATH $ZEPPELIN_MAIN >> "${ZEPPELIN_OUTFILE}" 2>&1 < /dev/null &
181185
pid=$!
182186
if [[ -z "${pid}" ]]; then
@@ -190,7 +194,6 @@ function start() {
190194
wait_zeppelin_is_up_for_ci
191195
sleep 2
192196
check_if_process_is_alive
193-
echo "ZEPPELIN_CLASSPATH: ${ZEPPELIN_CLASSPATH}" >> "${ZEPPELIN_LOGFILE}"
194197
}
195198

196199
function stop() {
@@ -255,7 +258,7 @@ case "${1}" in
255258
start
256259
;;
257260
restart)
258-
echo "${ZEPPELIN_NAME} is restarted" >> "${ZEPPELIN_LOGFILE}"
261+
echo "${ZEPPELIN_NAME} is restarting" >> "${ZEPPELIN_OUTFILE}"
259262
stop
260263
start
261264
;;

0 commit comments

Comments
 (0)