当前位置:网站首页>[untitled] JDBC connection database read timeout
[untitled] JDBC connection database read timeout
2022-07-27 03:33:00 【wuhui2100】
1、 background
When you encounter something at work, please record it by the way , Use when there is a large amount of data jdbc Connecting to the database will cause a read timeout when the actual read time exceeds the set read time . At that time, the customer environment data was hundreds of millions of data , Use jdbc Connect to the corresponding database ( All corresponding data will be submitted to spark Middle computation , It takes too long ) Monitor the data quality of the corresponding table , At this time, the reading time exceeds the set value, and the following error is thrown 
2、 Use scenarios
In order to solve the above problems , Prepare to extend the connection time setting , When reading the source code, I found jdbc The set connection is the global time , As a result, the connection time of the driver in other places will be loaded into the connection time of the current driver ( Make complaints JDBC The timeout is global operation )


Because it's using hive Connection driver 
Get into HiveConnection You will find that the global time is called 

This will cause my calculations in other places to change to the currently set connection time
3、 terms of settlement
The current solution is to extend the overall connection time ( Lead one to start the whole body )
notes : I hope the big guy I read has a good solution to discuss ( Can't change JDBC The premise of connection )
边栏推荐
猜你喜欢

$128million! IQM, a Finnish quantum computing company, was supported by the world fund

Mysql database related operations

Activiti5.22.0扩展支持达国产数据库,以GBase据库为例

Mysql: summary of common sub database and sub table schemes of Internet companies

Indexing best practices

【树链剖分】模板题

Explain工具实际操作

Spark Learning Notes (V) -- spark core core programming RDD conversion operator

【树链剖分】2022杭电多校2 1001 Static Query on Tree

redis秒杀案例,跟着b站尚硅谷老师学习
随机推荐
Explain工具实际操作
2022牛客多校第二场的J -- 三分做法
unity游戏,隐私协议最简单解决方案!仅3行代码就搞定!(转载)
shell awk
注解@Autowired和@Resource的区别总结
opiodr aborting process unknown ospid (21745) as a result of ORA-609
基于OpenCV的轮廓检测(1)
How to interact with the server when the client sends an SQL message
pip3 设置阿里云
FactoryBean的getObject调用时机
【1206. 设计跳表】
spark学习笔记(五)——sparkcore核心编程-RDD转换算子
基于OpenCV的轮廓检测(2)
Deeply understand the underlying data structure and algorithm of MySQL index
客户端发送一条sql如何与服务器交互
Spark Learning Notes (IV) -- spark core programming RDD
MySQL Chinese failure
代码审查金字塔
记录一次,php程序访问系统文件访问错误的问题
图解用户登录验证流程,写得太好了!