Spring boot整合Hive

使用Spring boot整合Hive,在啓動Spring boot項目時,報出異常:java

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

通過排查,是maven的包衝突引發的,具體作法,排除:jetty-all、hive-shims依賴包。對應的pom配置以下:web

<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>
相關文章
相關標籤/搜索