V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
AslanFong
V2EX  ›  问与答

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

  •  
  •   AslanFong · Feb 17, 2019 · 3039 views
    This topic created in 2627 days ago, the information mentioned may be changed or developed.

    在学 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
       Feb 17, 2019
    各位大佬,是不是只有换网络这条路可以走了?
    下载速度极其之慢,大概要下载到 2020 年这样吧。。
    blueskea
        2
    blueskea  
       Feb 18, 2019 via Android
    我用的笨方法,刷新 jar 包的时候,挂 vpn,下载完关掉 vpn。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1326 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 23:46 · PVG 07:46 · LAX 16:46 · JFK 19:46
    ♥ Do have faith in what you're doing.