cloudera repository maven 下载速度极其之慢,如何解决?

2019-02-17 18:12:38 +08:00
 AslanFong

在学 spark streaming 的内容,用 maven 构建的项目

在 pom.xml 里面添加了:

'''<repositories>
<repository>
  <id>cloudera</id>
  <url>https://repository.cloudera.com/artifactory/cloudera-repos</url>
</repository>
maven 的 setting 里面也添加了几个镜像,可是依然下载发生错误。到时发生:
    Error:scalac: missing or invalid dependency detected while loading class file 'StreamingContext.class'.

Could not access type Configuration in value org.apache.hadoop.conf, because it (or its dependencies) are missing. Check your build definition for missing or conflicting dependencies. (Re-run with -Ylog-classpath to see the problematic classpath.)

A full rebuild may help if 'StreamingContext.class' was compiled against an incompatible version of org.apache.hadoop.conf.

该怎么解决呢?

2652 次点击
所在节点    问与答
2 条回复
AslanFong
2019-02-17 18:27:05 +08:00
各位大佬,是不是只有换网络这条路可以走了?
下载速度极其之慢,大概要下载到 2020 年这样吧。。
blueskea
2019-02-18 12:56:39 +08:00
我用的笨方法,刷新 jar 包的时候,挂 vpn,下载完关掉 vpn。

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/535872

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX