Skip to content

Example to show how to stop the Spark Streaming Application Gracefully

Notifications You must be signed in to change notification settings

lanjiang/streamingstopgraceful

Repository files navigation

Demo how to stop the spark streaming gracefully

Example to show how to stop the Spark Streaming application gracefully.

Spark submit command:

spark-submit --class com.cloudera.ps.GracefulShutdownExample --master yarn --deploy-mode cluster --num-executors 3 /tmp/streamingstopgraceful-1.0-SNAPSHOT.jar

To shutdown the streaming app gracefully, place a file named "shutdownmarker" to HDFS /tmp folder

hdfs dfs -put shutdownmarker /tmp/shutdownmarker

For a detailed review of how to stop spark streaming gracefully, please visit [my blog] (http://blog.parseconsulting.com/2017/02/how-to-shutdown-spark-streaming-job.html)

About

Example to show how to stop the Spark Streaming Application Gracefully

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages