【问题标题】:Server access Error while building Apache Spark 0.8.0构建 Apache Spark 0.8.0 时服务器访问错误
【发布时间】:2013-12-02 22:27:24
【问题描述】:

更新:不知道我最终是如何解决它的,但它最终与 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.9.0?
  • 不知道我最终是如何解决它的,但它最终与 0.8.0 一起工作。我想我刚刚从另一个有效的存储库中获取了源代码。
  • 您介意在问题的开头将评论添加为 UPDATE 吗?看来您的问题将没有任何答案,因为您在不知道如何解决的情况下对其进行了整理。

标签: sbt apache-spark


【解决方案1】:

所有这些似乎都可以从 Maven Central 获得:

也许通过使用这些依赖项创建一个虚假项目,sbt 会从 Maven Central 中提取它们,而 Ivy 可能会缓存它们。

【讨论】:

    【解决方案2】:

    我也遇到了同样的错误。从此链接下载新版本,然后重试

    http://d3kbcqa49mib13.cloudfront.net/spark-0.9.0-incubating.tgz

    我花了大约 2 个小时。如果失败,请删除该文件夹并重新提取它

    【讨论】:

      猜你喜欢
      • 2015-10-10
      • 2015-10-31
      • 1970-01-01
      • 2023-03-27
      • 2016-10-10
      • 2014-02-19
      • 2018-03-09
      • 1970-01-01
      • 2017-11-20
      相关资源
      最近更新 更多