更新:不知道我最终是如何解决它的,但它最终使用的是0.8.0。我想我只是从其他存储库中获取了源代码。
执行sbt/sbt assembly
在我的机器上构建Spark时(我目前正在VirtualBox上运行Ubuntu,但这应该不是问题),我收到以下错误:
[error] Server access Error: Connection timed out url=https://repository.cloudera.com/artifactory/cloudera-repos/org/eclipse/jetty/jetty-parent/20/jetty-parent-20.pom
上面的URL似乎无法正常工作,即使在其他计算机上也无法手动访问它。还是有任何获得该文件的想法吗?
这是完整的控制台日志,如果这有所帮助。
ulysse@ulysse-VirtualBox:~/Downloads/spark-0.8.0-incubating$ sbt/sbt assembly
[info] Loading project definition from /home/ulysse/Downloads/spark-0.8.0-incubating/project/project
Cloning into '/home/ulysse/.sbt/staging/90b1b0889ba1299e38f2'...
[info] Loading project definition from /home/ulysse/Downloads/spark-0.8.0-incubating/project
[info] Updating {git://github.com/ijuma/junit_xml_listener.git#fe434773255b451a38e8d889536ebc260f4225ce}default-052ce0...
[info] Resolving org.scala-sbt#precompiled-2_10_1;0.12.4 ...
[info] Done updating.
[info] Updating {file:/home/ulysse/Downloads/spark-0.8.0-incubating/project/}plugins...
[info] Resolving org.scala-sbt#precompiled-2_10_1;0.12.4 ...
[info] downloading http://scalasbt.artifactoryonline.com/scalasbt/sbt-plugin-releases/com.eed3si9n/sbt-assembly/scala_2.9.2/sbt_0.12/0.9.1/jars/sbt-assembly.jar ...
[info] [SUCCESSFUL ] com.eed3si9n#sbt-assembly;0.9.1!sbt-assembly.jar (4422ms)
[info] downloading http://repo.typesafe.com/typesafe/ivy-releases/com.typesafe.sbteclipse/sbteclipse-plugin/scala_2.9.2/sbt_0.12/2.2.0/jars/sbteclipse-plugin.jar ...
[info] [SUCCESSFUL ] com.typesafe.sbteclipse#sbteclipse-plugin;2.2.0!sbteclipse-plugin.jar (2195ms)
[info] downloading http://repo1.maven.org/maven2/com/github/mpeltonen/sbt-idea_2.9.2_0.12/1.5.1/sbt-idea-1.5.1.jar ...
[info] [SUCCESSFUL ] com.github.mpeltonen#sbt-idea;1.5.1!sbt-idea.jar (4589ms)
[info] downloading http://repo1.maven.org/maven2/net/virtual-void/sbt-dependency-graph_2.9.2_0.12/0.7.3/sbt-dependency-graph-0.7.3.jar ...
[info] [SUCCESSFUL ] net.virtual-void#sbt-dependency-graph;0.7.3!sbt-dependency-graph.jar (2009ms)
[info] downloading http://repo.typesafe.com/typesafe/ivy-releases/com.typesafe.sbteclipse/sbteclipse-core/scala_2.9.2/sbt_0.12/2.2.0/jars/sbteclipse-core.jar ...
[info] [SUCCESSFUL ] com.typesafe.sbteclipse#sbteclipse-core;2.2.0!sbteclipse-core.jar (5483ms)
[info] downloading http://repo1.maven.org/maven2/org/scalaz/scalaz-core_2.9.2/6.0.4/scalaz-core_2.9.2-6.0.4.jar ...
[info] [SUCCESSFUL ] org.scalaz#scalaz-core_2.9.2;6.0.4!scalaz-core_2.9.2.jar (28459ms)
[info] downloading http://repo.typesafe.com/typesafe/releases/commons-io/commons-io/2.0.1/commons-io-2.0.1.jar ...
[info] [SUCCESSFUL ] commons-io#commons-io;2.0.1!commons-io.jar (1796ms)
[info] downloading http://repo1.maven.org/maven2/com/github/mdr/ascii-graphs_2.9.2/0.0.2/ascii-graphs_2.9.2-0.0.2.jar ...
[info] [SUCCESSFUL ] com.github.mdr#ascii-graphs_2.9.2;0.0.2!ascii-graphs_2.9.2.jar (2180ms)
[info] Done updating.
[info] Compiling 1 Scala source to /home/ulysse/.sbt/staging/90b1b0889ba1299e38f2/target/scala-2.9.2/sbt-0.12/classes...
[info] Compiling 1 Scala source to /home/ulysse/Downloads/spark-0.8.0-incubating/project/target/scala-2.9.2/sbt-0.12/classes...
[info] Set current project to root (in build file:/home/ulysse/Downloads/spark-0.8.0-incubating/)
Getting Scala 2.9.3 ...
downloading http://repo1.maven.org/maven2/org/scala-lang/scala-compiler/2.9.3/scala-compiler-2.9.3.jar ...
[SUCCESSFUL ] org.scala-lang#scala-compiler;2.9.3!scala-compiler.jar (64928ms)
downloading http://repo1.maven.org/maven2/org/scala-lang/scala-library/2.9.3/scala-library-2.9.3.jar ...
[SUCCESSFUL ] org.scala-lang#scala-library;2.9.3!scala-library.jar (48661ms)
downloading http://repo1.maven.org/maven2/org/scala-lang/jline/2.9.3/jline-2.9.3.jar ...
[SUCCESSFUL ] org.scala-lang#jline;2.9.3!jline.jar (1021ms)
:: retrieving :: org.scala-sbt#boot-scala
confs: [default]
4 artifacts copied, 0 already retrieved (20346kB/242ms)
[info] Updating {file:/home/ulysse/Downloads/spark-0.8.0-incubating/}core...
[info] Resolving org.eclipse.jetty#jetty-server;7.6.8.v20121106 ...
[error] Server access Error: Connection timed out url=https://repository.cloudera.com/artifactory/cloudera-repos/org/eclipse/jetty/jetty-server/7.6.8.v20121106/jetty-server-7.6.8.v20121106.pom
[info] Resolving org.eclipse.jetty#jetty-project;7.6.8.v20121106 ...
[error] Server access Error: Connection timed out url=https://repository.cloudera.com/artifactory/cloudera-repos/org/eclipse/jetty/jetty-project/7.6.8.v20121106/jetty-project-7.6.8.v20121106.pom
[info] Resolving org.eclipse.jetty#jetty-parent;20 ...
[error] Server access Error: Connection timed out url=https://repository.cloudera.com/artifactory/cloudera-repos/org/eclipse/jetty/jetty-parent/20/jetty-parent-20.pom
答案 0 :(得分:2)
所有这些似乎都可以从Maven Central获得:
也许通过使用这些依赖项创建一个虚假项目,sbt会将它们从Maven Central中拉出来,Ivy可能会缓存它们。
答案 1 :(得分:1)
我也遇到了同样的错误。从此链接下载新版本,然后重试
http://d3kbcqa49mib13.cloudfront.net/spark-0.9.0-incubating.tgz
我花了大约2个小时。如果失败,请删除该文件夹并重新提取