您现在的位置是:首页 >学无止境 >dbeaver连接高可用hive报错:Unexpected driver error occurred while connecting to the database网站首页学无止境

dbeaver连接高可用hive报错:Unexpected driver error occurred while connecting to the database

报错库 2025-02-23 12:01:02
简介dbeaver连接高可用hive报错:Unexpected driver error occurred while connecting to the database

【操作描述】配置好了hive高可用,在dbeaver上以dbeaver连接高可用hive(之前已经连接过单节点hive)

【版本信息】hadoop-3.3.4,hive-3.1.3

【报错信息】

Unexpected driver error occurred while connecting to the database
  'com.google.common.util.concurrent.ListeningExecutorService com.google.common.util.concurrent.MoreExecutors.sameThreadExecutor()'
  'com.google.common.util.concurrent.ListeningExecutorService com.google.common.util.concurrent.MoreExecutors.sameThreadExecutor()'

【解决方案】

1.从hive安装目录的jdbc目录下获取hive-jdbc-3.1.3-standalone.jar,放在windows无空格无中文的目录下

2.编辑驱动

3.选中hive-jdbc-3.1.3-standalone.jar编辑好驱动后,点击测试连接即可

【URL示例】

jdbc:hive2://hadoop1:2181,hadoop2:2181,hadoop3:2181/;serviceDiscoveryMode=zooKeeper;zooKeeperNamespace=hiveserver2

提示:zooKeeperNamespace改成自己配置的namespace

风语者!平时喜欢研究各种技术,目前在从事后端开发工作,热爱生活、热爱工作。