我试图使用cloudera库进行时间序列预测,但无法使用sbt加载库。
下面是build.sbt文件。我可以看到maven回购有0.4.0的disted版本,所以不知道我做错了什么。
有人能帮我知道我对sbt文件做错了什么吗?
import sbt.complete.Parsers._
scalaVersion := "2.11.8"
name := "Forecast Stock Price using Spark TimeSeries library"
val sparkVersion = "1.5.2"
//resolvers ++= Seq("Cloudera Repository" at "https://repository.cloudera.com/artifactory/cloudera-repos/")
libraryDependencies ++= Seq(
"org.apache.spark" %% "spark-core" % sparkVersion withSources(),
"org.apache.spark" %% "spark-streaming" % sparkVersion withSources(),
"org.apache.spark" %% "spark-sql" % sparkVersion withSources(),
"org.apache.spark" %% "spark-hive" % sparkVersion withSources(),
"org.apache.spark" %% "spark-streaming-twitter" % sparkVersion withSources(),
"org.apache.spark" %% "spark-mllib" % sparkVersion withSources(),
"com.databricks" %% "spark-csv" % "1.3.0" withSources(),
"com.cloudera.sparkts" %% "sparkts" % "0.4.0"
)发布于 2018-01-15 06:05:58
变化
"com.cloudera.sparkts" %% "sparkts" % "0.4.0"至
"com.cloudera.sparkts" % "sparkts" % "0.4.0"sparkts只为Scala2.11分发;它不以工件名称对Scala版本进行编码。
https://stackoverflow.com/questions/48257138
复制相似问题