javapythonhivejaydebeapi

Error connecting to Hive using JayDeBeApi - Class not found


I am trying to connect to my Hive server using JDBC connection.

I've the following JAR file in my JAVA_HOME:

But when I run my code jaydebeapi.connect('org.apache.hive.jdbc.HiveDriver', url)

It gives me the following error:

raise _RUNTIMEEXCEPTION.PYEXC("Class %s not found" % name)
jpype._jexception.RuntimeExceptionPyRaisable: java.lang.RuntimeException: Class org.apache.hive.jdbc.HiveDriver not found

Note: My connection needs to be using JDBC connection.

Anyone knows what I am missing?


Solution

  • There is mismatch of JDBC jar version

    try hive-jdbc 2.3.7