2017-06-11 146 views
0

有人可以幫助我瞭解爲什麼這個命令時瞭解一個SBT錯誤?執行包命令

[error] [/Users/slinky66/ScalaApps/WordCount2/wordcount2.sbt]:1: ';' expected but '.' found. 

該名.bst文件

## wordcount2.sbt 
name := "Word Count Project" 
version := "1.0" 
scalaVersion := "2.12.1" 
libraryDependencies +="org.apache.spark" %% "spark-core" % "2.1.0" 

感謝

+0

你有'##'作爲註釋加上你能得到火花,與2.12。我不認爲它可用 - https://repo1.maven.org/maven2/org/apache/spark/spark-core_2.12/ – prayagupd

回答

1

從名.bst文件中刪除## wordcount2.sbt。評論必須以//而非#開頭。即它應該是

// wordcount2.sbt 
name := "Word Count Project" 
version := "1.0" 
scalaVersion := "2.12.1" 
libraryDependencies +="org.apache.spark" %% "spark-core" % "2.1.0" 
+0

愚蠢的錯誤謝謝 – Slinky

+1

而且可能你需要scalac 2.11。*不是2.12火花 - https://repo1.maven.org/maven2/org/apache/spark/spark-core_2.12/ – prayagupd