我正在使用jdbc模板向配置单元执行批量插入操作。插入速度很慢。
我尝试使用hikaricp创建连接池,但在创建池时出现以下错误: Driver does not support get/set network timeout for connections. (Method not supported.)
数据源属性:
spring.datasource.type= com.zaxxer.hikari.HikariDataSource
spring.datasource.maximum-pool-size = 50
spring.datasource.minimum-idle = 2
spring.datasource.jdbcUrl = jdbc:hive2://url
spring.datasource.username = username
spring.datasource.password = password
spring.datasource.driverClassName = org.apache.hive.jdbc.HiveDriver
依赖项:
<depencency>
<groupId>org.apache.hive</groupId>
<artifactId>hive-jdbc</artifactId>
<version>2.1.0</version>
</dependency>
<depencency>
<groupId>com.zaxxer</groupId>
<artifactId>HikariCp</artifactId>
</dependency>
请帮忙。
暂无答案!
目前还没有任何答案,快来回答吧!