为什么sbt在编译mllib示例时抛出错误
我正试图用链接中给出的步骤编译并运行下面的示例 我在尝试执行相同操作时出现以下错误为什么sbt在编译mllib示例时抛出错误,sbt,apache-spark,Sbt,Apache Spark,我正试图用链接中给出的步骤编译并运行下面的示例 我在尝试执行相同操作时出现以下错误 [info] Loading project definition from /siva/nbais/blog-spark-naive-bayes-reuters-master/project [warn] module not found: com.github.mpeltonen#sbt-idea;1.6.0 [warn] ==== typesafe-ivy-releases: tried [warn]
[info] Loading project definition from /siva/nbais/blog-spark-naive-bayes-reuters-master/project
[warn] module not found: com.github.mpeltonen#sbt-idea;1.6.0
[warn] ==== typesafe-ivy-releases: tried
[warn] http://repo.typesafe.com/typesafe/ivy-releases/com.github.mpeltonen/sbt-idea/scala_2.9.1/sbt_0.11.3/1.6.0/ivys/ivy.xml
[warn] ==== local: tried
[warn] /root/.ivy2/local/com.github.mpeltonen/sbt-idea/scala_2.9.1/sbt_0.11.3/1.6.0/ivys/ivy.xml
[warn] ==== sbt-idea-repo: tried
[warn] http://mpeltonen.github.com/maven/com/github/mpeltonen/sbt-idea_2.9.1_0.11.3/1.6.0/sbt-idea-1.6.0.pom
[warn] ==== public: tried
[warn] http://repo1.maven.org/maven2/com/github/mpeltonen/sbt-idea_2.9.1_0.11.3/1.6.0/sbt-idea-1.6.0.pom
[warn] module not found: com.typesafe.sbteclipse#sbteclipse-plugin;2.5.0
[warn] ==== typesafe-ivy-releases: tried
[warn] http://repo.typesafe.com/typesafe/ivy-releases/com.typesafe.sbteclipse/sbteclipse-plugin/scala_2.9.1/sbt_0.11.3/2.5.0/ivys/ivy.xml
[warn] ==== local: tried
[warn] /root/.ivy2/local/com.typesafe.sbteclipse/sbteclipse-plugin/scala_2.9.1/sbt_0.11.3/2.5.0/ivys/ivy.xml
[warn] ==== sbt-idea-repo: tried
[warn] http://mpeltonen.github.com/maven/com/typesafe/sbteclipse/sbteclipse-plugin_2.9.1_0.11.3/2.5.0/sbteclipse-plugin-2.5.0.pom
[warn] ==== public: tried
[warn] http://repo1.maven.org/maven2/com/typesafe/sbteclipse/sbteclipse-plugin_2.9.1_0.11.3/2.5.0/sbteclipse-plugin-2.5.0.pom
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: UNRESOLVED DEPENDENCIES ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: com.github.mpeltonen#sbt-idea;1.6.0: not found
[warn] :: com.typesafe.sbteclipse#sbteclipse-plugin;2.5.0: not found
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn]
[warn] Note: Some unresolved dependencies have extra attributes. Check that these dependencies exist with the requested attributes.
[warn] com.github.mpeltonen:sbt-idea:1.6.0 (sbtVersion=0.11.3, scalaVersion=2.9.1)
[warn] com.typesafe.sbteclipse:sbteclipse-plugin:2.5.0 (sbtVersion=0.11.3, scalaVersion=2.9.1)
[warn]
[error] {file:/siva/nbais/blog-spark-naive-bayes-reuters-master/project/}default-4c8897/*:update: sbt.ResolveException: unresolved dependency: com.github.mpeltonen#sbt-idea;1.6.0: not found
[error] unresolved dependency: com.typesafe.sbteclipse#sbteclipse-plugin;2.5.0: not found
Project loading failed: (r)etry, (q)uit, (l)ast, or (i)gnore?
有什么想法吗?sbt idea 1.6.0需要Scala 2.10+和sbt 0.13+。但是您的环境是Scala 2.9.1和SBT 0.11.3。请更新它们。例如,添加/更新
build.sbt
,使用scalaVersion:=“2.10.4”
;使用sbt.version=0.13.6
添加/更新project/build.properties
。