11-07-2021 12:25 AM
Hello,
I tried without success to use several libraries installed by use in the Databricks 9.1 cluster (not provived by default in DBR) from a standalone Spark application runs from Intellij Idea.
For instance, for connecting to Redshift it works only using the embedded Postgre driver.
If I try to use the Redshift driver and Sap Hana driver without success.
Libraries for have been installed as JARs in the Databricks cluster
When I try to run in Debug mode or normal mode from Intellij Idea I get ClassnotFound.
Exception in thread "main" java.lang.ClassNotFoundException: com.sap.db.jdbc.Driver
SAP driver exists well in POM.XML dependencies, tried to add it to Intellij dependencies as well.
<dependency>
<groupId>com.sap.cloud.db.jdbc</groupId>
<artifactId>ngdbc</artifactId>
<version>2.10.15</version>
<type>jar</type>
</dependency>
Databricks connect JARS declared into Intellij dependencies properly: Basic Spark commands run well from Intellij standalone app to the cluster.
Technical environment:
Thank you four your support,
11-09-2021 08:25 AM
In addition to previous message, I am now able to run properly the job using Redshift driver from Databricks job: just add the Redshift library and the JAR for the job and it works.
However, not very convenient for debugging.
When I tried to run the app from Intellij to the remote Databricks cluster issue : Exception in thread "main" java.lang.ClassNotFoundException: Could not load an Amazon Redshift JDBC driver; see the README for instructions on downloading and configuring the official Amazon driver.
Tried :
Is there a way to run in debug mode Scala app in Databricks cluster or not ?
Thank you
11-08-2021 11:35 AM
Dear Kaniz,
Would you please provide an answer ? It is pretty urgent as we need to rewrite Databricks notebooks as standalone applications for better maintability.
Many thanks for your feedback.
11-09-2021 08:25 AM
In addition to previous message, I am now able to run properly the job using Redshift driver from Databricks job: just add the Redshift library and the JAR for the job and it works.
However, not very convenient for debugging.
When I tried to run the app from Intellij to the remote Databricks cluster issue : Exception in thread "main" java.lang.ClassNotFoundException: Could not load an Amazon Redshift JDBC driver; see the README for instructions on downloading and configuring the official Amazon driver.
Tried :
Is there a way to run in debug mode Scala app in Databricks cluster or not ?
Thank you
11-22-2021 12:48 AM
Dear Fatma
Sorry but no. It was not the question.
My customer (big German company will raise with Databricks support team directly). Please close this.
11-22-2021 09:17 AM
@Xavier VAN AUSLOOS - Would you be able to post the answer and mark it as best, so the community will be able to find the solution more easily if they run into this?
11-22-2021 09:44 AM
Unfortunately, I did not find any solution. We have to package JAR and run it from Databricks job for test/debug. Not efficient but as no solution for remote debug has been found/provided.
Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.
If there isn’t a group near you, start one and help create a community that brings people together.
Request a New Group