You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@spark.apache.org by algermissen1971 <al...@icloud.com> on 2015/07/21 12:53:59 UTC

Running driver app as a daemon

Hi,

I am trying to start a driver app as a daemon using Linux' start-stop-daemon script (I need console detaching, unbuffered STDOUT/STDERR to logfile and start/stop using a PID file).

I am doing this like this (which works great for the other apps we have)

/sbin/start-stop-daemon -c $USER --background --exec /bin/bash --pidfile ${PIDFILE} --start \
-- -c "stdbuf -o0 /opt/spark-1.4.0-bin-custom-spark/bin/spark-submit --master spark://sparkhost-1:7077 \
--class boot.Boot /myjar.jar $OPTS 2>&1 | /usr/bin/logger  -p local4.notice -t mytag"

Can anyone see an issue why this might bot work?

Jan
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@spark.apache.org
For additional commands, e-mail: user-help@spark.apache.org