mirror of https://github.com/apache/druid.git
Stop java process when run_server.sh is killed
This commit is contained in:
parent
631c3bf301
commit
6c819c1b03
|
@ -38,6 +38,9 @@ OPT_PROPS=""
|
||||||
#
|
#
|
||||||
java -Duser.timezone=UTC -Dfile.encoding=UTF-8 -Xmx600m -classpath target/druid-examples-twitter-*-selfcontained.jar $OPT_PROPS -Dtwitter4j.http.useSSL=true -Ddruid.realtime.specFile=twitter_realtime.spec druid.examples.RealtimeStandaloneMain >RealtimeNode.out 2>&1 &
|
java -Duser.timezone=UTC -Dfile.encoding=UTF-8 -Xmx600m -classpath target/druid-examples-twitter-*-selfcontained.jar $OPT_PROPS -Dtwitter4j.http.useSSL=true -Ddruid.realtime.specFile=twitter_realtime.spec druid.examples.RealtimeStandaloneMain >RealtimeNode.out 2>&1 &
|
||||||
PID=$!
|
PID=$!
|
||||||
|
|
||||||
|
trap "${PF_CLEANUP} ; kill ${PID} ; exit 1" 1 2 3 15
|
||||||
|
|
||||||
sleep 4
|
sleep 4
|
||||||
grep com.metamx.druid.realtime.TwitterSpritzerFirehoseFactory RealtimeNode.out | awk '{ print $7,$8,$9,$10,$11,$12,$13,$14,$15 }'
|
grep com.metamx.druid.realtime.TwitterSpritzerFirehoseFactory RealtimeNode.out | awk '{ print $7,$8,$9,$10,$11,$12,$13,$14,$15 }'
|
||||||
sleep 17
|
sleep 17
|
||||||
|
|
Loading…
Reference in New Issue