Hive jdbc连接不上(腾讯云emr集群)

海星之梦2024年7月19日2 回答242 浏览

今天突然每天运行好好的T+1任务失败了,一看发现是Hive jdbc连接超时然后开始了我的排查

1、看连接的HiveServer2的状态又是Ok的:

image.png

2、看HiveServer2日志:

cd /data/emr/hive/logs
tail -f hadoop-hiveserver2

image.png

image.png

除了一些warn,也没发现报错信息(可以连接的其中一个HiveServer2节点也报这个warn)。

3、通过hive自带的客户端看下能不能看到有用的报错信息

cd /usr/local/service/hive/bin
./beeline
beeline> !connect jdbc:hive2://xx.xx.xx.xx:7001

image.png

4、?



大佬们有遇到过这个问题没?指导下。