我正在尝试使用cloudera scalats库进行时间序列预测,但无法使用sbt下载库。
下面是build.sbt文件。我可以看到maven repo有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"
)
答案 0 :(得分:1)
更改
"com.cloudera.sparkts" %% "sparkts" % "0.4.0"
到
"com.cloudera.sparkts" % "sparkts" % "0.4.0"
sparkts
仅针对Scala 2.11分发;它不会在工件名称中对Scala版本进行编码。