I'm trying to use jaydebeapi library to connect to apache phoenix 4.4 via JDBC, I'm using this script python :
import jaydebeapi as jdbc
jar ='/usr/hdp/current/phoenix-client/phoenix-4.4.0.2.4.3.0-227-client.jar'
drivername = 'org.apache.phoenix.jdbc.PhoenixDriver'
url = 'jdbc:phoenix:master1:2181/'
conn = jdbc.connect(drivername, url, jar)
But i get this error :
File "/usr/local/lib/python2.7/dist-packages/jpype/_jclass.py", line 55, in JClass
raise _RUNTIMEEXCEPTION.PYEXC("Class %s not found" % name)
java.lang.RuntimeExceptionPyRaisable: java.lang.RuntimeException: Class org.apache.phoenix.jdbc.PhoenixDriver not found
Still I'm sure this driver works since I'm using it in my java API and it does work the same with squirrel so any idea why in python this can't find the driver class ?