当前位置:网站首页>Flink reads MySQL and PgSQL at the same time, and the program will get stuck without logs
Flink reads MySQL and PgSQL at the same time, and the program will get stuck without logs
2022-04-23 08:48:00 【zs_ bigdata】
One . problem
As the title ,flink The program will always get stuck initialize Stage , And there will be no logs
Two . solve
Read from the program mysql And pgsql The way to use is :
DriverManager.getConnection(URL, USERNAME, PASSWORD);
test , If only mysql, Or just ask pgsql There are normal data , At this point I wonder if there is a problem with this method
hold mysql Request to use the druid to get the connection instead
dataSource = new DruidDataSource();
dataSource.setDriverClassName(MysqlConfig.DriverName);
dataSource.setUrl(MysqlConfig.MYSQL_URL);
dataSource.setUsername(MysqlConfig.USERNAME);
dataSource.setPassword(MysqlConfig.PASSWORD);
dataSource.getConnection();
Restart the program , After discovery, you can request two databases at the same time
3、 ... and . doubt
I don't know whether this method has this limitation or flink Internally caused , I hope you can give me some advice
DriverManager.getConnection(URL, USERNAME, PASSWORD);
版权声明
本文为[zs_ bigdata]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230847378438.html
边栏推荐
猜你喜欢
《深度学习》学习笔记(八)
On time atom joins hands with oneos live broadcast, and the oneos system tutorial is fully launched
PLC point table (register address and point table definition) cracking detection scheme -- convenient for industrial Internet data acquisition
Summary of solid problems
MATLAB 画五星红旗
L2-022 重排链表 (25 分)(map+结构体模拟)
Idea is configured to connect to the remote database mysql, or Navicat fails to connect to the remote database (solved)
K210学习笔记(二) K210与STM32进行串口通信
论文阅读《Multi-View Depth Estimation by Fusing Single-View Depth Probability with Multi-View Geometry》
RCC introduction of Hal Library
随机推荐
是否完全二叉搜索树 (30 分)
Redis Desktop Manager for Mac(Redis可视化工具)
Wechat: get the owner of a single tag
计算神经网络推理时间的正确方法
mycat配置
swagger文档导出自定义v2/api-docs拦截
Stm32f103zet6 [development of standard library functions] - Introduction to library functions
php基于哈希算法出现的强弱比较漏洞
微信:获取单个标签所有人
【58】最后一个单词的长度【LeetCode】
还原二叉树 (25 分)
L2-022 rearrange linked list (25 points) (map + structure simulation)
Introduction to matlab
增强现实技术是什么?能用在哪些地方?
Enterprise wechat application authorization / silent login
dataBinding中使用include
Solidity 问题汇总
Complete binary search tree (30 points)
洋桃电子STM32物联网入门30步笔记三、CubeMX图形化编程、设置开发板上的IO口
单片机数码管秒表