Re : sbt console could not compile

Below is the piece of code written in intellij

package spark_demo


  • Created by Soumalya on 11-07-2017.
    import org.apache.spark.{SparkConf,SparkContext}
    object WordCount {
    def main(args: Array[String]): Unit = {
    val conf= new SparkConf().
    setAppName(“Word Count”)
    val sc = new SparkContext(conf)


Then did cd path in cgwin
then sbt console gave the below error.Please help

$ sbt console
[info] Loading project definition from C:\Users\Soumalya\IdeaProjects\GettingStarted\project
[info] Set current project to GettingStarted (in build file:/C:/Users/Soumalya/IdeaProjects/GettingStarted/)
[info] Compiling 10 Scala sources to C:\Users\Soumalya\IdeaProjects\GettingStarted\target\scala-2.10\classes…
[error] C:\Users\Soumalya\IdeaProjects\GettingStarted\src\main\scala\spark_demo\WordCount.scala:11: not found: value setMaster
[error] setMaster(“local”).
[error] ^
[error] one error found
[error] (compile:compileIncremental) Compilation failed
[error] Total time: 4 s, completed 13 Jul, 2017 1:08:25 AM
Picked up _JAVA_OPTIONS: -Xmx512M -Xms512M

There is some issue with set master