<p>What kind of error can I get when I have a executor request that either the memory or cpu cannot fit in a node?</p>
<p>Do I get the error from driver? Such as there is no resource available or I get the error from the scheduler which states that the request cannot fit in the cluster?</p>

buqing
<p>I think that I have found the answer by myself.</p>
<p>If you request an executor with requested memory/cpu that cannot fit in any of the nodes, for example, your requested memory/cpu is greater than the node it has. The following error can be found in the scheduler log</p>
<p>If the requested the cpu core number is greater than the total cpu core number in the node, you will get similar error like below. Pay attention to the keyword <strong>Insufficient cpu</strong> in the log</p>
<pre><code>I1115 18:02:02.371606      10 factory.go:339] &quot;Unable to schedule pod; no fit; waiting&quot; pod=&quot;dxxxs-xxxxx/xxxpycomputediffconnections3np-uoiqajbz-exec-1&quot; err=&quot;0/433 nodes are available: 1 Insufficient cpu, 1 node(s) had taint {ToBeDeletedByClusterAutoscaler: 1668535262}, that the pod didn't tolerate, 431 node(s) didn't match Pod's node affinity/selector.&quot;
</code></pre>
<p>If the requested the memory is greater than the total memory in the node, you will get similar error like below. Pay attention to the keyword <strong>Insufficient memory</strong> in the log</p>
<pre><code>I1115 18:02:02.371606      10 factory.go:339] &quot;Unable to schedule pod; no fit; waiting&quot; pod=&quot;dxxxs-xxxxx/xxxpycomputediffconnections3np-uoiqajbz-exec-1&quot; err=&quot;0/433 nodes are available: 1 Insufficient memory, 1 node(s) had taint {ToBeDeletedByClusterAutoscaler: 1668535262}, that the pod didn't tolerate, 431 node(s) didn't match Pod's node affinity/selector.&quot;
</code></pre>
