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

环境: 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包

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

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

重新编译,编译成功

posted @ 2016-09-18 00:50  Ivan.Jiang  阅读(2512)  评论(0编辑  收藏  举报