Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/apache-spark/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
为什么sbt在编译mllib示例时抛出错误_Sbt_Apache Spark - Fatal编程技术网

为什么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