spark abnormal papers - Close the program

When you run the spark program, for some reason, I want to stop running, press ctrl + c not necessarily mad act

 

The following two cases are not closed

1. cluster operation mode

2. SparkStreaming program

 

This article aims to collect tips close these programs

 

1. listening on a file in the program, if the file exists, that is, stop running

If we want to stop the program, you can create a new file in the specified place

Guess you like

Origin www.cnblogs.com/yanshw/p/12035654.html