V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
AslanFong
V2EX  ›  问与答

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

  •  
  •   AslanFong · 2019-02-17 18:12:38 +08:00 · 2650 次点击
    这是一个创建于 1887 天前的主题,其中的信息可能已经有所发展或是发生改变。

    在学 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.
    

    该怎么解决呢?

    AslanFong
        1
    AslanFong  
    OP
       2019-02-17 18:27:05 +08:00
    各位大佬,是不是只有换网络这条路可以走了?
    下载速度极其之慢,大概要下载到 2020 年这样吧。。
    blueskea
        2
    blueskea  
       2019-02-18 12:56:39 +08:00 via Android
    我用的笨方法,刷新 jar 包的时候,挂 vpn,下载完关掉 vpn。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1298 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 37ms · UTC 17:39 · PVG 01:39 · LAX 10:39 · JFK 13:39
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.