有人可以帮我理解为什么这个命令:
$ sbt package clean
导致以下错误?
[error] [/Users/slinky66/ScalaApps/WordCount2/wordcount2.sbt]:1: ';' expected but '.' found.
.sbt文件
## wordcount2.sbt
name := "Word Count Project"
version := "1.0"
scalaVersion := "2.12.1"
libraryDependencies +="org.apache.spark" %% "spark-core" % "2.1.0"
由于
答案 0 :(得分:1)
从.sbt文件中删除## wordcount2.sbt
。评论必须以//
而不是#
开头。即它应该是
// wordcount2.sbt
name := "Word Count Project"
version := "1.0"
scalaVersion := "2.12.1"
libraryDependencies +="org.apache.spark" %% "spark-core" % "2.1.0"