title: Unable to Execute More than a spark Job "Initial job has not accepted any resources"
body: <p>Using a Standalone Spark Java to execute the below code snippet, I'm getting the Status is always WAITING with the below error.It doesn't work when I try to add the Print statement. Is there any configuration I might have missed to run multiple jobs?</p>
  
  <blockquote>
    <p>15/09/18 15:02:56 INFO DAGScheduler: Submitting 2 missing tasks from Stage 0 (MapPartitionsRDD[2] at filter at SparkTest.java:143)</p>
    
    <p>15/09/18 15:02:56 INFO TaskSchedulerImpl: Adding task set 0.0 with 2
    tasks</p>
    
    <p>15/09/18 15:03:11 WARN TaskSchedulerImpl: Initial job has not accepted
    any resources; check your cluster UI to ensure that workers are
    registered and have sufficient resources</p>
    
    <p>15/09/18 15:03:26 WARN TaskSchedulerImpl: Initial job has not accepted
    any resources; check your cluster UI to ensure that workers are
    registered and have sufficient resources</p>
    
    <p>15/09/18 15:03:41 WARN TaskSchedulerImpl: Initial job has not accepted
    any resources; check your cluster UI to ensure that workers are
    registered and have sufficient resources</p>
  </blockquote>
  
  <pre><code>JavaRDD&lt;String&gt; words = input.flatMap(new FlatMapFunction&lt;String, String&gt;()    //Ln:143
          {
              public Iterable&lt;String&gt; call(String x)
              {
                  return Arrays.asList(x.split(" "));
              }
          });
  // Count all the words
  System.out.println("Total words is" + words.count())
  </code></pre>