3

我的 pom.xml:

<dependencies>
    <dependency>
      <groupId>org.apache.hadoop</groupId>
      <artifactId>hadoop-core</artifactId>
      <version>2.0.0-mr1-cdh4.3.1</version>
    </dependency>

    <dependency>
      <groupId>org.apache.hbase</groupId>
      <artifactId>hbase</artifactId>
      <version>0.94.10</version>
    </dependency>
 </dependencies>
 <repositories>
    <repository>
         <id>cloudera</id>
         <url>https://repository.cloudera.com/artifactory/cloudera-repos/</url>
    </repository>
 </repositories>

在我的浏览器中,我可以从https://repository.cloudera.com/artifactory/cloudera-repos/org/apache/hadoop/hadoop-core/2.0下载 hadoop-core-2.0.0-mr1-cdh4.3.1.jar .0-mr1-cdh4.3.1/没有问题,但是当我尝试使用 maven 构建我的项目时,我遇到了这个错误:

Could not transfer artifact org.apache.hadoop:hadoop-core:pom:2.0.0-mr1-cdh4.3.1 
from/to cloudera (https://repository.cloudera.com/artifactory/cloudera-repos/):
repository.cloudera.com: nodename nor servname provided, or not known: Unknown host
repository.cloudera.com: nodename nor servname provided, or not known -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException

==更新==

我可以 ping https://repository.cloudera.com

└ $ ping https://repository.cloudera.com
PING https://repository.cloudera.com (220.250.64.27): 56 data bytes
64 bytes from 220.250.64.27: icmp_seq=0 ttl=238 time=45.730 ms

无法 ping repository.cloudera.com

└ $ ping repository.cloudera.com
PING repository.cloudera.com (75.101.141.93): 56 data bytes
Request timeout for icmp_seq 0
4

0 回答 0