<?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 How to install (mssql) drivers to jobcompute? in Administration &amp; Architecture</title>
    <link>https://community.databricks.com/t5/administration-architecture/how-to-install-mssql-drivers-to-jobcompute/m-p/116521#M3284</link>
    <description>&lt;P&gt;Hello, I'm having this issue with job-computes:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PabloCSD_0-1745527653462.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/16221i9578C7A682BF8B0F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PabloCSD_0-1745527653462.png" alt="PabloCSD_0-1745527653462.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The snippet of the code is as follows:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;     84 if self.conf["persist_to_sql"]:
     85     # persist to sql
     86     df_parsed.write.format(
     87         "com.microsoft.sqlserver.jdbc.spark"
     88     ).option("url", self.get_sql_connection_string()).option(
     89         "dbtable", self.conf["sql_tables"]["report"]
     90     ).option(
     91         "driver", "com.microsoft.sqlserver.jdbc.SQLServerDriver"
     92     ).mode(
     93         "append"
---&amp;gt; 94     ).save()
     95     self.logger.info(
     96         f"Saved to {self.conf['sql_tables']['report']}"
     97     )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;How can I install the driver to this job-compute?&lt;/P&gt;&lt;P&gt;This is the driver I'm want to install: &lt;EM&gt;spark-mssql-connector_2.12-1.4.0-BETA.jar&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I tried:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Upload to the workspace shared folder an init script that installs the driver (didn't work)&lt;/LI&gt;&lt;LI&gt;Indicate to the databricks.yml configuration to install the library at the cluster definition from maven&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Thu, 24 Apr 2025 20:53:54 GMT</pubDate>
    <dc:creator>PabloCSD</dc:creator>
    <dc:date>2025-04-24T20:53:54Z</dc:date>
    <item>
      <title>How to install (mssql) drivers to jobcompute?</title>
      <link>https://community.databricks.com/t5/administration-architecture/how-to-install-mssql-drivers-to-jobcompute/m-p/116521#M3284</link>
      <description>&lt;P&gt;Hello, I'm having this issue with job-computes:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PabloCSD_0-1745527653462.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/16221i9578C7A682BF8B0F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PabloCSD_0-1745527653462.png" alt="PabloCSD_0-1745527653462.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The snippet of the code is as follows:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;     84 if self.conf["persist_to_sql"]:
     85     # persist to sql
     86     df_parsed.write.format(
     87         "com.microsoft.sqlserver.jdbc.spark"
     88     ).option("url", self.get_sql_connection_string()).option(
     89         "dbtable", self.conf["sql_tables"]["report"]
     90     ).option(
     91         "driver", "com.microsoft.sqlserver.jdbc.SQLServerDriver"
     92     ).mode(
     93         "append"
---&amp;gt; 94     ).save()
     95     self.logger.info(
     96         f"Saved to {self.conf['sql_tables']['report']}"
     97     )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;How can I install the driver to this job-compute?&lt;/P&gt;&lt;P&gt;This is the driver I'm want to install: &lt;EM&gt;spark-mssql-connector_2.12-1.4.0-BETA.jar&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I tried:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Upload to the workspace shared folder an init script that installs the driver (didn't work)&lt;/LI&gt;&lt;LI&gt;Indicate to the databricks.yml configuration to install the library at the cluster definition from maven&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 24 Apr 2025 20:53:54 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/how-to-install-mssql-drivers-to-jobcompute/m-p/116521#M3284</guid>
      <dc:creator>PabloCSD</dc:creator>
      <dc:date>2025-04-24T20:53:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to install (mssql) drivers to jobcompute?</title>
      <link>https://community.databricks.com/t5/administration-architecture/how-to-install-mssql-drivers-to-jobcompute/m-p/116867#M3299</link>
      <description>&lt;P&gt;Up!&lt;/P&gt;</description>
      <pubDate>Mon, 28 Apr 2025 22:31:03 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/how-to-install-mssql-drivers-to-jobcompute/m-p/116867#M3299</guid>
      <dc:creator>PabloCSD</dc:creator>
      <dc:date>2025-04-28T22:31:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to install (mssql) drivers to jobcompute?</title>
      <link>https://community.databricks.com/t5/administration-architecture/how-to-install-mssql-drivers-to-jobcompute/m-p/116874#M3300</link>
      <description>&lt;P class=""&gt;To install the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;spark-mssql-connector_2.12-1.4.0-BETA.jar&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;driver for Azure Databricks job clusters, use one of these methods:&lt;/P&gt;&lt;H2&gt;1.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Cluster-Level Installation via Maven&lt;/STRONG&gt;&lt;/H2&gt;&lt;P class=""&gt;Add these Maven coordinates to your cluster/library configuration:&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;DIV class=""&gt;text&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;com.microsoft.azure:spark-mssql-connector_2.12:1.4.0-BETA com.microsoft.sqlserver:mssql-jdbc:8.4.1.jre8 &lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;UL class=""&gt;&lt;LI&gt;&lt;P class=""&gt;&lt;STRONG&gt;Steps&lt;/STRONG&gt;:&lt;/P&gt;&lt;OL class=""&gt;&lt;LI&gt;&lt;P class=""&gt;Navigate to your Databricks cluster settings.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;Under&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Libraries&lt;/STRONG&gt;, select&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Install New&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;→&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Maven&lt;/STRONG&gt;.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;Paste the coordinates above and install&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;H2&gt;2.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Job-Specific Configuration&lt;/STRONG&gt;&lt;/H2&gt;&lt;P class=""&gt;For job clusters, specify libraries directly in the job settings:&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;DIV class=""&gt;text&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;libraries: - maven: coordinates: "com.microsoft.azure:spark-mssql-connector_2.12:1.4.0-BETA" - maven: coordinates: "com.microsoft.sqlserver:mssql-jdbc:8.4.1.jre8" &lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P class=""&gt;This ensures dependencies are included when the job cluster starts&lt;/P&gt;&lt;H2&gt;3.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Init Script (Alternative)&lt;/STRONG&gt;&lt;/H2&gt;&lt;P class=""&gt;If using an init script, ensure both the connector and JDBC driver are copied:&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;DIV class=""&gt;bash&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;#!/bin/bash&lt;/SPAN&gt; &lt;SPAN class=""&gt;cp&lt;/SPAN&gt; /dbfs/FileStore/jars/spark-mssql-connector_2.12-1.4.0-BETA.jar /databricks/jars/ &lt;SPAN class=""&gt;cp&lt;/SPAN&gt; /dbfs/FileStore/jars/mssql-jdbc-8.4.1.jre8.jar /databricks/jars/ &lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;UL class=""&gt;&lt;LI&gt;&lt;P class=""&gt;Upload the JARs to DBFS first&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;H2&gt;Key Considerations&lt;/H2&gt;&lt;UL class=""&gt;&lt;LI&gt;&lt;P class=""&gt;&lt;STRONG&gt;Spark Version Compatibility&lt;/STRONG&gt;: Confirm your Databricks runtime aligns with the connector’s Spark 3.4 requirement&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;&lt;STRONG&gt;JDBC Dependency&lt;/STRONG&gt;: The&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;mssql-jdbc&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;driver is mandatory to resolve&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;NoClassDefFoundError&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;&lt;STRONG&gt;Avoid Manual DBFS Uploads&lt;/STRONG&gt;: Maven installation is preferred for dependency management&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P class=""&gt;For Azure Data Factory pipelines, configure the libraries in the Databricks linked service’s&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Advanced&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;settings under "Libraries"&lt;/P&gt;</description>
      <pubDate>Tue, 29 Apr 2025 03:07:39 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/how-to-install-mssql-drivers-to-jobcompute/m-p/116874#M3300</guid>
      <dc:creator>AIenthu</dc:creator>
      <dc:date>2025-04-29T03:07:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to install (mssql) drivers to jobcompute?</title>
      <link>https://community.databricks.com/t5/administration-architecture/how-to-install-mssql-drivers-to-jobcompute/m-p/117303#M3310</link>
      <description>&lt;P&gt;For a job compute, you would have to go init script route.&lt;/P&gt;
&lt;P&gt;Can you please highlight, the cause of the failure of library installation via init script?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 May 2025 06:52:28 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/how-to-install-mssql-drivers-to-jobcompute/m-p/117303#M3310</guid>
      <dc:creator>NandiniN</dc:creator>
      <dc:date>2025-05-01T06:52:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to install (mssql) drivers to jobcompute?</title>
      <link>https://community.databricks.com/t5/administration-architecture/how-to-install-mssql-drivers-to-jobcompute/m-p/117717#M3323</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/23233"&gt;@NandiniN&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;In the Shared folder I created a init_script for the JobCompute defined as its shown:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;#!/bin/bash
echo "=====&amp;gt; Installing MSSQL Spark Connector"
cp /dbfs/Workspace/Shared/drivers/spark-mssql-connector_2.12-1.4.0-BETA.jar /databricks/jars/
echo "=====&amp;gt; Connector copied!"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PabloCSD_0-1746453202163.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/16482iFECB19B29F21A2D3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PabloCSD_0-1746453202163.png" alt="PabloCSD_0-1746453202163.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In the logs there isn't any log and the workflow is still failing due to the missing driver, if you could give me any direction for trying to solve this would be much appreciated&lt;/P&gt;</description>
      <pubDate>Mon, 05 May 2025 13:58:48 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/how-to-install-mssql-drivers-to-jobcompute/m-p/117717#M3323</guid>
      <dc:creator>PabloCSD</dc:creator>
      <dc:date>2025-05-05T13:58:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to install (mssql) drivers to jobcompute?</title>
      <link>https://community.databricks.com/t5/administration-architecture/how-to-install-mssql-drivers-to-jobcompute/m-p/117997#M3327</link>
      <description>&lt;P&gt;Up!&lt;/P&gt;</description>
      <pubDate>Tue, 06 May 2025 21:32:21 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/how-to-install-mssql-drivers-to-jobcompute/m-p/117997#M3327</guid>
      <dc:creator>PabloCSD</dc:creator>
      <dc:date>2025-05-06T21:32:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to install (mssql) drivers to jobcompute?</title>
      <link>https://community.databricks.com/t5/administration-architecture/how-to-install-mssql-drivers-to-jobcompute/m-p/119780#M3382</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/23233"&gt;@NandiniN&lt;/a&gt;please check&lt;/P&gt;</description>
      <pubDate>Tue, 20 May 2025 14:53:15 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/how-to-install-mssql-drivers-to-jobcompute/m-p/119780#M3382</guid>
      <dc:creator>PabloCSD</dc:creator>
      <dc:date>2025-05-20T14:53:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to install (mssql) drivers to jobcompute?</title>
      <link>https://community.databricks.com/t5/administration-architecture/how-to-install-mssql-drivers-to-jobcompute/m-p/120365#M3401</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/23233"&gt;@NandiniN&lt;/a&gt;please check&lt;/P&gt;</description>
      <pubDate>Tue, 27 May 2025 20:06:30 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/how-to-install-mssql-drivers-to-jobcompute/m-p/120365#M3401</guid>
      <dc:creator>PabloCSD</dc:creator>
      <dc:date>2025-05-27T20:06:30Z</dc:date>
    </item>
  </channel>
</rss>

