TaskSchedulerImpl: Initial job has not accepted any resources;

前端 未结 5 1280
旧时难觅i
旧时难觅i 2020-12-03 06:14

Here is what I am trying to do.

I have created two nodes of DataStax enterprise cluster,on top of which I have created a java program to get the count of one table (

5条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-03 06:31

    I faced similar issue and after some online research and trial-n-error, I narrowed down to 3 causes for this (except for the first the other two are not even close to the error message):

    1. As indicated by the error, probably you are allocating the resources more than that is available. => This was not my issue
    2. Hostname & IP Address mishaps: I took care of this by specifying the SPARK_MASTER_IP and SPARK_LOCAL_IP in spark-env.sh
    3. Disable Firewall on the client : This was the solution that worked for me. Since I was working on a prototype in-house code, I disabled the firewall on the client node. For some reason the worker nodes, were not able to talk back to the client for me. For production purposes, you would want to open-up certain number of ports required.

提交回复
热议问题