<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to use from standalone Spark Jar running from Intellij Idea the library installed in Databricks DBR? in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/how-to-use-from-standalone-spark-jar-running-from-intellij-idea/m-p/11392#M6378</link>
    <description>&lt;P&gt;Dear Kaniz, &lt;/P&gt;&lt;P&gt;Would you please provide an answer ? It is pretty urgent as we need to rewrite Databricks notebooks as standalone applications for better maintability. &lt;/P&gt;&lt;P&gt;Many thanks for your feedback.&lt;/P&gt;</description>
    <pubDate>Mon, 08 Nov 2021 19:35:42 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-11-08T19:35:42Z</dc:date>
    <item>
      <title>How to use from standalone Spark Jar running from Intellij Idea the library installed in Databricks DBR?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-use-from-standalone-spark-jar-running-from-intellij-idea/m-p/11390#M6376</link>
      <description>&lt;P&gt;Hello, &lt;/P&gt;&lt;P&gt;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. &lt;/P&gt;&lt;P&gt;For instance, for connecting to Redshift it works only using the embedded Postgre driver. &lt;/P&gt;&lt;P&gt;If I try to use the Redshift driver and Sap Hana driver without success.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Libraries for have been installed as JARs in the Databricks cluster&lt;/P&gt;&lt;UL&gt;&lt;LI&gt; Sap Hana ngdbc_2_10_15.jar&lt;/LI&gt;&lt;LI&gt;redshift_jdbc42_1_2_16_1027-330d8.jar&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I try to run in Debug mode or normal mode from Intellij Idea I get ClassnotFound.&lt;/P&gt;&lt;P&gt;Exception in thread "main" java.lang.ClassNotFoundException: com.sap.db.jdbc.Driver&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAP driver exists well in POM.XML dependencies, tried to add it to Intellij dependencies as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;dependency&amp;gt;&lt;/P&gt;&lt;P&gt;    &amp;lt;groupId&amp;gt;com.sap.cloud.db.jdbc&amp;lt;/groupId&amp;gt;&lt;/P&gt;&lt;P&gt;    &amp;lt;artifactId&amp;gt;ngdbc&amp;lt;/artifactId&amp;gt;&lt;/P&gt;&lt;P&gt;    &amp;lt;version&amp;gt;2.10.15&amp;lt;/version&amp;gt;&lt;/P&gt;&lt;P&gt;    &amp;lt;type&amp;gt;jar&amp;lt;/type&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/dependency&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Databricks connect JARS declared into Intellij dependencies properly: Basic Spark commands run well from Intellij standalone app to the cluster. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Technical environment: &lt;/P&gt;&lt;UL&gt;&lt;LI&gt;DBR 9.1 LTS (includes Apache Spark 3.1.2, Scala 2.12)&lt;/LI&gt;&lt;LI&gt;Intellij Idea 2021.2.2 (from Windows 10)&lt;/LI&gt;&lt;LI&gt;AWS Redshift driver or Sap Hana driver&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you four your support,&lt;/P&gt;</description>
      <pubDate>Sun, 07 Nov 2021 07:25:16 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-use-from-standalone-spark-jar-running-from-intellij-idea/m-p/11390#M6376</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-11-07T07:25:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to use from standalone Spark Jar running from Intellij Idea the library installed in Databricks DBR?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-use-from-standalone-spark-jar-running-from-intellij-idea/m-p/11392#M6378</link>
      <description>&lt;P&gt;Dear Kaniz, &lt;/P&gt;&lt;P&gt;Would you please provide an answer ? It is pretty urgent as we need to rewrite Databricks notebooks as standalone applications for better maintability. &lt;/P&gt;&lt;P&gt;Many thanks for your feedback.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Nov 2021 19:35:42 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-use-from-standalone-spark-jar-running-from-intellij-idea/m-p/11392#M6378</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-11-08T19:35:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to use from standalone Spark Jar running from Intellij Idea the library installed in Databricks DBR?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-use-from-standalone-spark-jar-running-from-intellij-idea/m-p/11393#M6379</link>
      <description>&lt;P&gt;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. &lt;/P&gt;&lt;P&gt;However, not very convenient for debugging. &lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tried :&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;to add the driver JAR into Databricks connect jar path : no success&lt;/LI&gt;&lt;LI&gt;use sc.addJars : no success&lt;/LI&gt;&lt;LI&gt;use sc.addJars with dbfs path of the driver : no success&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to run in debug mode Scala app in Databricks cluster or not ? &lt;/P&gt;&lt;P&gt;Thank you &lt;/P&gt;</description>
      <pubDate>Tue, 09 Nov 2021 16:25:33 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-use-from-standalone-spark-jar-running-from-intellij-idea/m-p/11393#M6379</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-11-09T16:25:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to use from standalone Spark Jar running from Intellij Idea the library installed in Databricks DBR?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-use-from-standalone-spark-jar-running-from-intellij-idea/m-p/11395#M6381</link>
      <description>&lt;P&gt;Dear Fatma&lt;/P&gt;&lt;P&gt;Sorry but no. It was not the question. &lt;/P&gt;&lt;P&gt;My customer (big German company will raise with Databricks support team directly). Please close this.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Nov 2021 08:48:06 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-use-from-standalone-spark-jar-running-from-intellij-idea/m-p/11395#M6381</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-11-22T08:48:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to use from standalone Spark Jar running from Intellij Idea the library installed in Databricks DBR?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-use-from-standalone-spark-jar-running-from-intellij-idea/m-p/11396#M6382</link>
      <description>&lt;P&gt;@Xavier VAN AUSLOOS​&amp;nbsp;- 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?&lt;/P&gt;</description>
      <pubDate>Mon, 22 Nov 2021 17:17:13 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-use-from-standalone-spark-jar-running-from-intellij-idea/m-p/11396#M6382</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-11-22T17:17:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to use from standalone Spark Jar running from Intellij Idea the library installed in Databricks DBR?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-use-from-standalone-spark-jar-running-from-intellij-idea/m-p/11397#M6383</link>
      <description>&lt;P&gt;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. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Nov 2021 17:44:20 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-use-from-standalone-spark-jar-running-from-intellij-idea/m-p/11397#M6383</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-11-22T17:44:20Z</dc:date>
    </item>
  </channel>
</rss>

