title: Scala code not compiling in SBT - Eclipse Maven build
body: <p>I am trying to compile sample Spark scala file through sbt and have built maven project in Eclipse IDE </p>
  
  <p><a href="http://i.stack.imgur.com/lGBxi.png" rel="nofollow">Image</a></p>
  
  <pre><code>import org.apache.spark.SparkContext
  import org.apache.spark.SparkContext._
  import org.apache.spark.SparkConf
  
  object simpleSpark {
    def main(args : Arrayt[String]){
  
      val logfile = "C:\\spark-1.6.1-bin-hadoop2.6\spark-1.6.1-bin-hadoop2.6\README.md"
      val conf = new SparkConf().setAppName("Simple Application").setMaster("local[2]").set("spark.executor.memory", "1g")
      val sc = new SparkContext(conf)
      val logData = sc.textFile(logFile, 2).cache()
      val numHadoops = logData.filter(line =&gt; line.contains("Hadoop")).count()
      val numSparks = logData.filer(line =&gt; line.contains("Spark")).count()
      println("Lines with Hadoop: %s, Lines with Spark: %s".format(numHadoops, numHadoops))
      }
  }
  </code></pre>