使用Spring boot整合Hive,在启动Spring boot项目时,报错
2024-08-29 18:50:34
使用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.
最新文章
- POJ 3450 后缀数组/KMP
- 数据库---T-SQL语句提纲
- private
- 自定义Sharepoint的登陆页面
- Codeforces149D - Coloring Brackets(区间DP)
- TCP 协议三次握手过程解析带实例
- Dragon Balls
- Leetcode_80_Remove Duplicates from Sorted Array II
- C#中替换特殊字符串
- 【三】Java VM 发展史
- hisicv200 exfat支持
- CSS 组合选择器
- vuex状态持久化
- pdf及word文档的读取 pyPDF2,docx
- [SoapUI] 通过JSONAssert比较两个环境的JSON Response,定制化错误信息到Excel
- Android 编程下 Canvas and Drawables
- 170707、springboot编程之监控和管理生产环境
- Intelij Idea下的git使用
- ajax中 XmlHttp的open( )方法
- BZOJ1003_物流运输_KEY