dolphinscheduler 2.0.1hive数据源使用zooKeeper方式连接 创建不成功

通过zk连接hive需要 

Connecting to jdbc:hive2://tianhumaster:2181,tianhuslave1:2181,tianhuslave2:2181/default;password=isi;serviceDiscoveryMode=zooKeeper;user=isi;zooKeeperNamespace=hiveserver2

这样格式的jdbc连接 但是日志中 海豚拼接出来的jdbc连接是:

[ERROR] 2021-12-27 15:06:24.614 
org.apache.dolphinscheduler.api.service.impl.DataSourceServiceImpl:[328] - 
datasource test connection error, 
dbType:HIVE, 
connectionParam:
HiveConnectionParam{user='isi', password='isi', address='jdbc:hive2://tianhumaster:2181,tianhuslave1:2181,tianhuslave2:2181', database='test', jdbcUrl='jdbc:hive2://tianhumaster:2181,tianhuslave1:2181,tianhuslave2:2181/test', driverLocation='null', driverClassName='org.apache.hive.jdbc.HiveDriver', validationQuery='select 1', other='serviceDiscoveryMode=zooKeeper;zooKeeperNamespace=hiveserver2;', principal='null', javaSecurityKrb5Conf='null', loginUserKeytabUsername='null', loginUserKeytabPath='null'}, message:JDBC connect failed.

 没有将配置的 {"serviceDiscoveryMode":"zooKeeper","zooKeeperNamespace":"hiveserver2"} 选项拼接进去 所以创建连接不上

 

 解决办法: https://github.com/apache/dolphinscheduler/issues/7485

 git上有个issues提出来了,里面有解决办法 .预计在下一个版本修复

posted @ 2022-01-06 18:13  超级无敌小剑  阅读(1125)  评论(0编辑  收藏  举报