更新 build.sbt 文件
使用以下命令更新 build.sbt:
scalaVersion := "2.11.8" // Make sure to have installed Scala 11
sparkVersion := "2.0.0" // Make sure to have installed Spark 2.0
请注意,使用 sbt package
进行编译时,.jar
现在将在 target/scala-2.11/
中创建,.jar
名称也将更改,因此 spark-submit
命令也需要更新。