繁体   English   中英

Spark中的Maven依赖关系如何显示缺少的工件错误?

[英]what does maven dependency in spark show me the missing artifact errors?

我想从Maven Central安装Spark,并且包括以下依赖项:

<dependency>
  <groupId>org.apache.spark</groupId>
  <artifactId>spark-core_2.10</artifactId>
  <version>1.0.2</version>
</dependency>

但是我得到以下22错误。 总而言之,它说我缺少工件com.clearspring.analytics.stream:jar.2.5.1和org.scala-lang:scala-compiler:jar2.10.0。 我通过将它们包含在我的项目中(外部jar文件)来包含了每个jar文件,但是它根本没有用。 而且我知道我已经安装了Scala 2.11,因此拥有较高版本不是什么大问题。

谁能告诉我发生了什么事?

这是以下错误:

Description Resource    Path    Location    Type

ArtifactTransferException: Failure to transfer com.clearspring.analytics:stream:jar:2.5.1 from http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact com.clearspring.analytics:stream:jar:2.5.1 from/to central (http://repo.maven.apache.org/maven2): The operation was cancelled.    pom.xml /recommendation_engine  line 2  Maven Dependency Problem
ArtifactTransferException: Failure to transfer com.clearspring.analytics:stream:jar:2.5.1 from http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of maven-repo has elapsed or updates are forced. Original error: Could not transfer artifact com.clearspring.analytics:stream:jar:2.5.1 from/to central (http://repo.maven.apache.org/maven2): The operation was cancelled. pom.xml /recommendation_engine  line 2  Maven Dependency Problem
ArtifactTransferException: Failure to transfer com.clearspring.analytics:stream:jar:2.5.1 from http://repo.spring.io/libs-release was cached in the local repository, resolution will not be reattempted until the update interval of spring-releases has elapsed or updates are forced. Original error: Could not transfer artifact com.clearspring.analytics:stream:jar:2.5.1 from/to spring-releases (http://repo.spring.io/libs-release): The operation was cancelled.  pom.xml /recommendation_engine  line 2  Maven Dependency Problem
ArtifactTransferException: Failure to transfer com.clearspring.analytics:stream:jar:2.5.1 from http://repository.mapr.com/maven was cached in the local repository, resolution will not be reattempted until the update interval of mapr-repo has elapsed or updates are forced. Original error: Could not transfer artifact com.clearspring.analytics:stream:jar:2.5.1 from/to mapr-repo (http://repository.mapr.com/maven): The operation was cancelled.  pom.xml /recommendation_engine  line 2  Maven Dependency Problem
ArtifactTransferException: Failure to transfer com.clearspring.analytics:stream:jar:2.5.1 from https://repo.eclipse.org/content/repositories/paho-releases was cached in the local repository, resolution will not be reattempted until the update interval of mqtt-repo has elapsed or updates are forced. Original error: Could not transfer artifact com.clearspring.analytics:stream:jar:2.5.1 from/to mqtt-repo (https://repo.eclipse.org/content/repositories/paho-releases): The operation was cancelled.    pom.xml /recommendation_engine  line 2  Maven Dependency Problem
ArtifactTransferException: Failure to transfer com.clearspring.analytics:stream:jar:2.5.1 from https://repository.apache.org/content/repositories/releases was cached in the local repository, resolution will not be reattempted until the update interval of apache-repo has elapsed or updates are forced. Original error: Could not transfer artifact com.clearspring.analytics:stream:jar:2.5.1 from/to apache-repo (https://repository.apache.org/content/repositories/releases): The operation was cancelled.    pom.xml /recommendation_engine  line 2  Maven Dependency Problem
ArtifactTransferException: Failure to transfer com.clearspring.analytics:stream:jar:2.5.1 from https://repository.cloudera.com/artifactory/cloudera-repos was cached in the local repository, resolution will not be reattempted until the update interval of cloudera-repo has elapsed or updates are forced. Original error: Could not transfer artifact com.clearspring.analytics:stream:jar:2.5.1 from/to cloudera-repo (https://repository.cloudera.com/artifactory/cloudera-repos): The operation was cancelled.  pom.xml /recommendation_engine  line 2  Maven Dependency Problem
ArtifactTransferException: Failure to transfer com.clearspring.analytics:stream:jar:2.5.1 from https://repository.jboss.org/nexus/content/repositories/releases was cached in the local repository, resolution will not be reattempted until the update interval of jboss-repo has elapsed or updates are forced. Original error: Could not transfer artifact com.clearspring.analytics:stream:jar:2.5.1 from/to jboss-repo (https://repository.jboss.org/nexus/content/repositories/releases): The operation was cancelled.    pom.xml /recommendation_engine  line 2  Maven Dependency Problem
ArtifactTransferException: Failure to transfer org.scala-lang:scala-compiler:jar:2.10.0 from http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.scala-lang:scala-compiler:jar:2.10.0 from/to central (http://repo.maven.apache.org/maven2): The operation was cancelled.    pom.xml /recommendation_engine  line 2  Maven Dependency Problem
ArtifactTransferException: Failure to transfer org.scala-lang:scala-compiler:jar:2.10.0 from http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of maven-repo has elapsed or updates are forced. Original error: Could not transfer artifact org.scala-lang:scala-compiler:jar:2.10.0 from/to central (http://repo.maven.apache.org/maven2): The operation was cancelled. pom.xml /recommendation_engine  line 2  Maven Dependency Problem
ArtifactTransferException: Failure to transfer org.scala-lang:scala-compiler:jar:2.10.0 from http://repo.spring.io/libs-release was cached in the local repository, resolution will not be reattempted until the update interval of spring-releases has elapsed or updates are forced. Original error: Could not transfer artifact org.scala-lang:scala-compiler:jar:2.10.0 from/to spring-releases (http://repo.spring.io/libs-release): The operation was cancelled.  pom.xml /recommendation_engine  line 2  Maven Dependency Problem
ArtifactTransferException: Failure to transfer org.scala-lang:scala-compiler:jar:2.10.0 from http://repository.mapr.com/maven was cached in the local repository, resolution will not be reattempted until the update interval of mapr-repo has elapsed or updates are forced. Original error: Could not transfer artifact org.scala-lang:scala-compiler:jar:2.10.0 from/to mapr-repo (http://repository.mapr.com/maven): The operation was cancelled.  pom.xml /recommendation_engine  line 2  Maven Dependency Problem
ArtifactTransferException: Failure to transfer org.scala-lang:scala-compiler:jar:2.10.0 from https://oss.sonatype.org/content/repositories/releases/ was cached in the local repository, resolution will not be reattempted until the update interval of sonatypereleases has elapsed or updates are forced. Original error: Could not transfer artifact org.scala-lang:scala-compiler:jar:2.10.0 from/to sonatypereleases (https://oss.sonatype.org/content/repositories/releases/): The operation was cancelled.  pom.xml /recommendation_engine  line 2  Maven Dependency Problem
ArtifactTransferException: Failure to transfer org.scala-lang:scala-compiler:jar:2.10.0 from https://oss.sonatype.org/content/repositories/snapshots/ was cached in the local repository, resolution will not be reattempted until the update interval of sonatypesnapshots has elapsed or updates are forced. Original error: Could not transfer artifact org.scala-lang:scala-compiler:jar:2.10.0 from/to sonatypesnapshots (https://oss.sonatype.org/content/repositories/snapshots/): The operation was cancelled.  pom.xml /recommendation_engine  line 2  Maven Dependency Problem
ArtifactTransferException: Failure to transfer org.scala-lang:scala-compiler:jar:2.10.0 from https://repo.eclipse.org/content/repositories/paho-releases was cached in the local repository, resolution will not be reattempted until the update interval of mqtt-repo has elapsed or updates are forced. Original error: Could not transfer artifact org.scala-lang:scala-compiler:jar:2.10.0 from/to mqtt-repo (https://repo.eclipse.org/content/repositories/paho-releases): The operation was cancelled.    pom.xml /recommendation_engine  line 2  Maven Dependency Problem
ArtifactTransferException: Failure to transfer org.scala-lang:scala-compiler:jar:2.10.0 from https://repository.apache.org/content/repositories/releases was cached in the local repository, resolution will not be reattempted until the update interval of apache-repo has elapsed or updates are forced. Original error: Could not transfer artifact org.scala-lang:scala-compiler:jar:2.10.0 from/to apache-repo (https://repository.apache.org/content/repositories/releases): The operation was cancelled.    pom.xml /recommendation_engine  line 2  Maven Dependency Problem
ArtifactTransferException: Failure to transfer org.scala-lang:scala-compiler:jar:2.10.0 from https://repository.cloudera.com/artifactory/cloudera-repos was cached in the local repository, resolution will not be reattempted until the update interval of cloudera-repo has elapsed or updates are forced. Original error: Could not transfer artifact org.scala-lang:scala-compiler:jar:2.10.0 from/to cloudera-repo (https://repository.cloudera.com/artifactory/cloudera-repos): The operation was cancelled.  pom.xml /recommendation_engine  line 2  Maven Dependency Problem
ArtifactTransferException: Failure to transfer org.scala-lang:scala-compiler:jar:2.10.0 from https://repository.jboss.org/nexus/content/repositories/releases was cached in the local repository, resolution will not be reattempted until the update interval of jboss-repo has elapsed or updates are forced. Original error: Could not transfer artifact org.scala-lang:scala-compiler:jar:2.10.0 from/to jboss-repo (https://repository.jboss.org/nexus/content/repositories/releases): The operation was cancelled.    pom.xml /recommendation_engine  line 2  Maven Dependency Problem
Missing artifact com.clearspring.analytics:stream:jar:2.5.1 pom.xml /recommendation_engine  line 1  Maven Dependency Problem
Missing artifact org.scala-lang:scala-compiler:jar:2.10.0   pom.xml /recommendation_engine  line 1  Maven Dependency Problem
The container 'Maven Dependencies' references non existing library '/Users/chlee021690/.m2/repository/org/scala-lang/scala-compiler/2.10.0/scala-compiler-2.10.0.jar'   recommendation_engine       Build path  Build Path Problem
The project cannot be built until build path errors are resolved    recommendation_engine       Unknown Java Problem

如果您位于代理之后,则可能必须在settings.xml中指定代理。 从错误消息看来,您的Maven实例似乎无法连接到Maven Central。 参见以下内容以设置代理: http : //maven.apache.org/guides/mini/guide-proxies.html

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM