在学 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.
该怎么解决呢?