Initial job has not accepted any resources; check your cluster UI to ensure that workers are registered and have sufficient resources
<p>I'm trying to run the spark examples from <code>Eclipse</code> and getting this generic error: <code>Initial job has not accepted any resources; check your cluster UI to ensure that workers are registered and have sufficient resources.</code></p>

<p>The version I have is <code>spark-1.6.2-bin-hadoop2.6.</code> I started spark using the <code>./sbin/start-master.sh</code> command from a shell, and set my <code>sparkConf</code> like this: </p>

<pre><code>SparkConf conf = new SparkConf().setAppName("Simple Application");
conf.setMaster("spark://My-Mac-mini.local:7077");
</code></pre>

<p>I'm not bringing any other code here because this error pops up with any of the examples I'm running. The machine is a Mac OSX and I'm pretty sure it has enough resources to run the simplest examples. </p>

<p>What am I missing? </p>