HikariPool-1 - Exception during pool initialization. isValid …java.sql.SQLException: Method not supported
报错信息
HikariPool-1 - Exception during pool initialization.
nested exception is org.apache.ibatis.exceptions.PersistenceException: ### Error querying database. Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is java.sql.SQLException: Method not supported
解决方法:application-*.properties中添加hive.type等配置
spring.datasource.hive.url=jdbc:hive2://cdh:10000/?useSSL=false
spring.datasource.hive.username=
spring.datasource.hive.password=
spring.datasource.hive.driver-class-name=org.apache.hive.jdbc.HiveDriver
spring.datasource.hive.type=com.alibaba.druid.pool.DruidDataSource
spring.datasource.hive.validation-query=false