alibaba / alibaba/DataX

rdbms hive writer java.sql.SQLException: No suitable driver found for jdbc:hive2:

Open
#1,028 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
17.4k
Forks
5.7k
PR merge metrics
No merged PRs in 30d

Description

2021-05-26 11:46:00.697 [job-0] ERROR RetryUtil - Exception when calling callable, 异常Msg:Code:[DBUtilErrorCode-10], Description:[连接数据库失败. 请检查您的 账号、密码、数据库名称、IP、Port或者向 DBA 寻求帮助(注意网络环境).]. - 具体错误信息为:java.sql.SQLException: No suitable driver found for jdbc:hive2://192.168.XX.XX:10000
com.alibaba.datax.common.exception.DataXException: Code:[DBUtilErrorCode-10], Description:[连接数据库失败. 请检查您的 账号、密码、数据库名称、IP、Port或者向 DBA 寻求帮助(注意网络环境).]. - 具体错误信息为:java.sql.SQLException: No suitable driver found for jdbc:hive2://192.168.XX.XX:10000

plugin.json已经添加 ,"org.apache.hive.jdbc.HiveDriver"
jdbc 系列 jar包也在 writer libs路径下添加

但是依旧显示没有驱动
jdbc 单独测 写是可以的

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by examining the RDBMS Hive writer's plugin.json and writer libs directory, then reproduce the jdbc:hive2 connection failure described in the report. Check whether the declared org.apache.hive.jdbc.HiveDriver and JDBC JARs are actually available to the writer at runtime. Done means the writer can establish the reported Hive JDBC connection without the no-suitable-driver error.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
database
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.