title: Missing application resource
body: <p><strong>Use java to write the spark program, the code is as follows:</strong></p>
  
  <pre><code>import org.apache.spark.SparkConf;
  import org.apache.spark.api.java.JavaRDD;
  import org.apache.spark.api.java.JavaSparkContext;
  import org.apache.spark.api.java.function.Function;
  
  public class SimpleApp {
    public static void main(String[] args) {
        SparkConf conf = new SparkConf().setAppName("wordCount").setMaster("local"); 
        JavaSparkContext sc = new JavaSparkContext(conf); 
        JavaRDD&lt;String&gt; input = sc.textFile("/bigdata/softwares/spark-2.1.0-bin-hadoop2.7/testdata/a.txt");
        System.out.println();
        Long bCount = input.filter(new Function&lt;String,Boolean&gt;(){
           public Boolean call(String s){return s.contains("yes");}
        }).count();
        Long cCount = input.filter(new Function&lt;String,Boolean&gt;(){
           public Boolean call(String s){return s.contains("ywq");}
        }).count();
        System.out.println("yes:"+bCount+"  ywq:"+cCount+"  all：");
  //    sc.stop();
    }
  }
  </code></pre>
  
  <p><strong>Pom as follows：</strong></p>
  
  <pre><code>&lt;dependencies&gt;
          &lt;dependency&gt; &lt;!-- Spark dependency --&gt;
              &lt;groupId&gt;org.apache.spark&lt;/groupId&gt;
              &lt;artifactId&gt;spark-core_2.11&lt;/artifactId&gt;
              &lt;version&gt;2.1.0&lt;/version&gt;
          &lt;/dependency&gt;
      &lt;/dependencies&gt;
      &lt;build&gt;
          &lt;plugins&gt;      
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-shade-plugin&lt;/artifactId&gt;
                  &lt;version&gt;2.3&lt;/version&gt;
                  &lt;executions&gt;
                      &lt;execution&gt;
                          &lt;phase&gt;package&lt;/phase&gt;
                          &lt;goals&gt;
                              &lt;goal&gt;shade&lt;/goal&gt;
                          &lt;/goals&gt;
                      &lt;/execution&gt;
                  &lt;/executions&gt;
              &lt;/plugin&gt;
          &lt;/plugins&gt;
      &lt;/build&gt;
  </code></pre>
  
  <p><strong>The following error occurred</strong>
  <strong>Maven all the resources are packaged into jar file, run the time reported the following mistakes, I just started learning, who knows to teach, thank you</strong>
  <a href="https://i.stack.imgur.com/l2FXq.png" rel="nofollow noreferrer">enter image description here</a></p>