加载hive-jdbc driver时报错:java.lang.NoClassDefFoundError: org/apache/hadoop/conf/Configuration

这是因为缺少一个hadoop-common包,引入即可:

<dependency>
  <groupId>org.apache.hadoop</groupId>
  <artifactId>hadoop-common</artifactId>
  <version>2.6.5</version>
</dependency>

 

参考:https://blog.csdn.net/u010429286/article/details/78780145

posted @ 2019-04-19 15:53  codercg  阅读(11668)  评论(0编辑  收藏  举报