title: getting error in importing spark dependencies in intellij idea
body: <p>I am using intelli j idea with maven integration but I am getting error on following lines</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;
  </code></pre>
  
  <p>I am trying to run following example </p>
  
  <pre><code>package com.spark.hello;
  
  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 Hello {
  
        public static void main(String[] args) {
              String logFile = "F:\\Spark\\a.java"; 
              SparkConf conf = new SparkConf().setAppName("Simple Application");
              JavaSparkContext sc = new JavaSparkContext(conf);
              JavaRDD&lt;String&gt; logData = sc.textFile(logFile).cache();
  
              long numAs = logData.filter(new Function&lt;String, Boolean&gt;() {
                public Boolean call(String s) { return s.contains("a"); }
              }).count();
  
              long numBs = logData.filter(new Function&lt;String, Boolean&gt;() {
                public Boolean call(String s) { return s.contains("b"); }
              }).count();
  
              System.out.println("Lines with a: " + numAs + ", lines with b: " + numBs);
            }
  
  
  
  
  
  
  }
  </code></pre>
  
  <p>plz help me to solve this issue or is there any other way to run this kind of project???</p>