连接impala时,连接一段时间会自动断开,同时后台报错

把下面的配置加到impala连接中:

spring.datasource.impala.initialSize=10
spring.datasource.impala.maxActive=100
spring.datasource.impala.maxWait=60000

spring.datasource.impala.timeBetweenEvictionRunsMillis=60000
spring.datasource.impala.minEvictableIdleTimeMillis=300000
spring.datasource.impala.validationQuery=SELECT 1
spring.datasource.impala.testWhileIdle=true
spring.datasource.impala.testOnBorrow=false
spring.datasource.impala.testOnReturn=false
spring.datasource.impala.poolPreparedStatements=false
spring.datasource.impala.maxPoolPreparedStatementPerConnectionSize=200

posted @ 2020-06-01 15:29  下饭  阅读(1183)  评论(0编辑  收藏  举报