环境: CentOs 6.4
spark: spark-1.2.0-cdh5.3.6

编译到最后external/kafka报错: bad symbolic reference. A signature in Utils.class refers to term concurrent in value com.google.common.util which is not available.

原因是:kafka项目引用了Utils.scala,Utils.scala引用guava包,而guava包只是provided用于编译,kafka项目中并没有guava包

spark编译出错:bad symbolic reference. A signature in Utils.class refers to term concurrent in value com.google.common.util which is not available.

解决方法:在kafka pom文件增加guava依赖

    <dependency>
        <groupId>com.google.guava</groupId>
        <artifactId>guava</artifactId>
        <version>14.0.1</version>        
    </dependency>

重新编译,编译成功

spark编译出错:bad symbolic reference. A signature in Utils.class refers to term concurrent in value com.google.common.util which is not available.

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-09-08
  • 2021-11-21
  • 2022-12-23
  • 2022-01-22
  • 2021-10-14
  • 2021-11-09
猜你喜欢
  • 2022-12-23
  • 2021-08-15
  • 2022-12-23
  • 2022-12-23
  • 2021-04-12
  • 2022-12-23
  • 2021-04-11
相关资源
相似解决方案