WARN taskschedulerimpl:initial Job has not accepted any resources; Check your cluster Uito ensure

Source: Internet
Author: User

This problem occurs when you run the Spark program

WARN taskschedulerimpl:initial Job has not accepted any resources; Check your cluster Uito ensure that workers is registered and has sufficient memory

Then stop, login WebUI see the status is wait, allocate the kernel is 0, memory is parameter –executor-memory (or-dspark.executor.memory)
This is because the available resources for the current cluster do not meet the resources requested by the application.
This first examines the memory of the executor that is assigned to each worker in the spark-env.sh file. When the above parameters are exceeded in the app, the app does not work with the worker, but instead goes to the worker that satisfies the value.
Of course, the distribution of each node is generally the same, so it is basically because the parameter exceeds the memory value of the executor assigned to the worker.
Change the value of executor (worker) to the spark-env.sh file (if you have so much memory, of course)
The problem will be solved.

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.