当前位置:网站首页>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
边栏推荐
- Share the office and improve the settled experience
- HAL库的RCC简介
- 共享办公室,提升入驻体验
- Star Trek's strong attack opens the dream linkage between metacosmic virtual reality
- 是否同一棵二叉搜索树 (25 分)
- Kubernetes如何使用harbor拉去私有镜像
- BK3633 规格书
- Go语言自学系列 | golang结构体作为函数参数
- Enctype attribute in form
- Complete binary search tree (30 points)
猜你喜欢

2022-04-22 OpenEBS云原生存储

L2-3 浪漫侧影 (25 分)

Star Trek's strong attack opens the dream linkage between metacosmic virtual reality

2021 Li Hongyi's adaptive learning rate of machine learning

Notes d'apprentissage oneflow: de functor à opexprinterpreter

洋桃电子STM32物联网入门30步笔记一、HAL库和标准库的区别

2022-04-22 openebs cloud native storage

L2-022 rearrange linked list (25 points) (map + structure simulation)

GUI编程简介 swing

Enterprise wechat application authorization / silent login
随机推荐
K210学习笔记(二) K210与STM32进行串口通信
PLC的点表(寄存器地址和点表定义)破解探测方案--方便工业互联网数据采集
Flash project cross domain interception and DBM database learning [Baotou cultural and creative website development]
MATLAB 画五星红旗
Type anonyme (Principes fondamentaux du Guide c)
Use of Arthas in JVM tools
Summary of solid problems
虚拟线上展会-线上vr展馆实现24h沉浸式看展
Notes d'apprentissage oneflow: de functor à opexprinterpreter
Complete binary search tree (30 points)
面了一圈,整理了这套面试题。。
Star Trek's strong attack opens the dream linkage between metacosmic virtual reality
Reference passing 1
LINQ Learning Series ----- 1.4 anonymous objects
L2-023 图着色问题 (25 分)(图的遍历)
Star Trek强势来袭 开启元宇宙虚拟与现实的梦幻联动
Virtual online exhibition - Online VR exhibition hall realizes 24h immersive exhibition viewing
GUI编程简介 swing
Talent Plan 学习营初体验:交流+坚持 开源协作课程学习的不二路径
Get the absolute path of the class according to the bytecode