How do I stop a spark streaming job?
You can stop your streaming context in cluster mode by running the following command without needing to sending a SIGTERM. This will stop the streaming context without you needing to explicitly stop it using a thread hook. $SPARK_HOME_DIR/bin/spark-submit –master $MASTER_REST_URL –kill $DRIVER_ID -$MASTER_REST_URL is the rest url of the spark driver, ie something like spark://localhost:6066 … Read more