SkillAgentSearch skills...

Streamingstopgraceful

Example to show how to stop the Spark Streaming Application Gracefully

Install / Use

/learn @lanjiang/Streamingstopgraceful
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

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)

Related Skills

View on GitHub
GitHub Stars26
CategoryDevelopment
Updated3y ago
Forks10

Languages

Scala

Security Score

60/100

Audited on Dec 27, 2022

No findings