Analysis on the reason of spark-streaming stage tamping

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.