I am looking to connect to a delta lake in one databricks instance from a different databricks instance. I have downloaded the sparksimba jar from the downloads page. When I use the following code:
result = spark.read.format("jdbc").option('user', 'token').option('password', <password>).option('query', query).option("url", <url>).option('driver','com.simba.spark.jdbc42.Driver').load()
I get the following error:
Py4JJavaError: An error occurred while calling o287.load.: java.lang.ClassNotFoundException: com.simba.spark.jdbc42.Driver
From reading around it seems I need to register driver-class-path, but I can't find a way where this works.
I have tried the following code, but the bin/pyspark dir does not exist in my databricks env:
%sh bin/pyspark --driver-class-path $/dbfs/driver/simbaspark/simbaspark.jar --jars /dbfs/driver/simbaspark/simbaspark.jar
I have also tried:
java -jar /dbfs/driver/simbaspark/simbaspark.jar
but I get this error back: no main manifest attribute, in dbfs/driver/simbaspark/simbaspark