使用Spring boot整合Hive,在启动Spring boot项目时,报出异常:

java.lang.NoSuchMethodError: org.eclipse.jetty.servlet.ServletMapping.setDefault(Z)V

经过排查,是maven的包冲突引起的,具体做法,排除:jetty-all、hive-shims依赖包。对应的pom配置如下:

    <dependency>
<groupId>org.apache.hive</groupId>
<artifactId>hive-jdbc</artifactId>
<version>1.2.1</version>
<exclusions>
<exclusion>
<groupId>org.eclipse.jetty.aggregate</groupId>
<artifactId>jetty-all</artifactId>
</exclusion>
<exclusion>
<groupId>org.apache.hive</groupId>
<artifactId>hive-shims</artifactId>
</exclusion>
</exclusions>
</dependency> 报错2:
LocalHiveClientFactory required a bean of type 'org.springframework.data.hadoop.hive.HiveClientFactory' that could not be found.

最新文章

  1. POJ 3450 后缀数组/KMP
  2. 数据库---T-SQL语句提纲
  3. private
  4. 自定义Sharepoint的登陆页面
  5. Codeforces149D - Coloring Brackets(区间DP)
  6. TCP 协议三次握手过程解析带实例
  7. Dragon Balls
  8. Leetcode_80_Remove Duplicates from Sorted Array II
  9. C#中替换特殊字符串
  10. 【三】Java VM 发展史
  11. hisicv200 exfat支持
  12. CSS 组合选择器
  13. vuex状态持久化
  14. pdf及word文档的读取 pyPDF2,docx
  15. [SoapUI] 通过JSONAssert比较两个环境的JSON Response,定制化错误信息到Excel
  16. Android 编程下 Canvas and Drawables
  17. 170707、springboot编程之监控和管理生产环境
  18. Intelij Idea下的git使用
  19. ajax中 XmlHttp的open( )方法
  20. BZOJ1003_物流运输_KEY

热门文章

  1. BZOJ3631 [JLOI2014]松鼠的新家 【树上差分】
  2. 【CF Round 439 C. The Intriguing Obsession】
  3. WinDirStat is a disk usage statistics viewer
  4. Java并发(2)- 聊聊happens-before
  5. Android ANR 详解
  6. 我对 aspnetpager和repeater以及查询条件的封装
  7. 基于CSOCKET的Client简单实例(转)
  8. OpenGL入门学习(五)
  9. centos编译安装vim并支持lua
  10. python--asyncio模块