kylin使用出现的坑(三)——java.sql.SQLException:No suitable driver found for jdbc:mysql://localhost:3306/hive?

在构建Kylin Cube过程中遇到`java.sql.SQLException: No suitable driver found for jdbc:mysql://localhost:3306/hive?createDatabaseIfNotExist=true&useSSL=false`异常。错误并非由Hive配置文件或JDBC版本引起,而是因为Kylin无法连接到Hive的元数据库。解决方案是将Master节点上的Hive目录复制到所有Slave节点,并更新环境变量确保Hive依赖可在所有节点访问。
摘要由CSDN通过智能技术生成

异常信息描述:

kylin的cube在build时,#2 Step Name: Extract Fact Table Distinct Columns出现java.sql.SQLException的错误。如下所示:

java.sql.SQLException: No suitable driver found for jdbc:mysql://localhost:3306/hive?createDatabaseIfNotExist=true&useSSL=false具体错误如下文所示:

Caused by: MetaException(message:Unable to open a test connection to the given database. JDBC url = jdbc:mysql://localhost:3306/hive?createDatabaseIfNotExist=true&useSSL=false, username = hadoop. Terminating connection pool (set lazyInit to true if you expect to start your database after your app). Original Exception: ------
java.sql.SQLException: No suitable driver found for jdbc:mysql://localhost:3306/hive?createDatabaseIfNotExist=true&useSSL=false
	at java.sql.DriverManager.getConnection(DriverManager.java:689)
	at java.sql.DriverManager.getConnection(DriverManager.java:208)
	at com.jolbox.bonecp.Bo
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值