phenomena
The occasional stage stops moving during task execution
But when we get to the mission, we find that the mission status is successed.
View Log found error and warn reported
17/03/28 10:56:19 ERROR livelistenerbus:dropping sparklistenerevent because no remaining in event queue. This likely means one of the sparklisteners was too slow and cannot keep up with the rate at which tasks was being started By the scheduler.
17/03/28 10:56:19 WARN livelistenerbus:dropped 1 sparklistenerevents since Thu Jan 08:00:00 CST 1970
the cause of the problem
Searched some articles about Message Queuing, and found the relevant bug in Spark's Jira. It is true that in the 2.x version of Spark there is a bug caused by improper setting of the number of messages in the Livelistenerbus message queue, which affects the presentation in WebUI, and also affects the judgment of the task status.
The reason for this is that when the number of messages in a message queue exceeds the number of its spark.scheduler.listenerbus.eventqueue.size settings (default is 10000 if not set), the most recent message is removed. These messages are supposed to notify the task to be running, and the status cannot be updated because you removed it, so the behavior described above is resolved
Add the following parameters to the Spark-submit
To see if the problem is solved.
After 6 hours of trial operation, there is no more compaction phenomenon. Stating that this parameter does solve the problem