<?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: Databricks Asset Bundles library dependencies - JAR file in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/databricks-asset-bundles-library-dependencies-jar-file/m-p/78876#M35630</link>
    <description>&lt;P&gt;Thanks very much&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/9"&gt;@Retired_mod&lt;/a&gt;&amp;nbsp;for your thorough answer.&lt;/P&gt;</description>
    <pubDate>Mon, 15 Jul 2024 23:57:22 GMT</pubDate>
    <dc:creator>theanhdo</dc:creator>
    <dc:date>2024-07-15T23:57:22Z</dc:date>
    <item>
      <title>Databricks Asset Bundles library dependencies - JAR file</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-asset-bundles-library-dependencies-jar-file/m-p/78231#M35488</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;I have used databricks asset bundles (DAB) to deploy workflows. For each job, I will create a job cluster and install external libraries by specifying libraries in each task, for example:&lt;/P&gt;&lt;P&gt;- task_key: my-task&lt;BR /&gt;&amp;nbsp; job_cluster_key: my-cluster&lt;BR /&gt;&amp;nbsp; notebook_task:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; notebook_path: ../notebooks/my_notebook.ipynb&lt;BR /&gt;&amp;nbsp; libraries:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; - whl: /Workspace${workspace.file_path}/libraries/PyYAML-6.0.whl&lt;BR /&gt;&amp;nbsp; &amp;nbsp; - jar: /Workspace${workspace.file_path}/libraries/mongo-spark-connector_2.12-10.1.1-all.jar&lt;/P&gt;&lt;P&gt;For&amp;nbsp;Python wheel file (whl), I can see the library&amp;nbsp;PyYAML-6.0.whl is installed. However, for JAR file, it failed to install the library&amp;nbsp;mongo-spark-connector_2.12-10.1.1-all.jar.&amp;nbsp;For JAR file, I know that I can install it using&amp;nbsp;Unity Catalog volumes, however I want to &lt;STRONG&gt;install all libraries from workspace&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;From this document, it says that&amp;nbsp;&lt;EM&gt;To add a JAR file to a job task, in&amp;nbsp;libraries&amp;nbsp;specify a&amp;nbsp;jar&amp;nbsp;mapping for each library to be installed. &lt;STRONG&gt;You can install a JAR from workspace files&lt;/STRONG&gt;, Unity Catalog volumes, cloud object storage, or a local file path.&lt;/EM&gt;&lt;BR /&gt;&lt;A href="https://docs.databricks.com/en/dev-tools/bundles/library-dependencies.html" target="_blank"&gt;https://docs.databricks.com/en/dev-tools/bundles/library-dependencies.html&lt;/A&gt;&lt;BR /&gt;However, it is not working for JAR file when I use workspace to install JAR file.&lt;/P&gt;&lt;P&gt;Even when I created a cluster and tried to install JAR file by the following steps, it is not working:&lt;BR /&gt;1. Create a cluster using Databricks Runtime Version 14.3 LTS&lt;BR /&gt;2. Go to Libraries tab and click Install new button&lt;BR /&gt;3. In the popup, select Workspace and navigate to the workspace libraries folder&lt;BR /&gt;Then there are 2 libraries PyYAML-6.0.whl and&amp;nbsp;mongo-spark-connector_2.12-10.1.1-all.jar. I can only select whl library while JAR library is not selectable.&lt;/P&gt;&lt;P&gt;Do you know is there any way we can install JAR files from workspace?&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2024 00:39:53 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-asset-bundles-library-dependencies-jar-file/m-p/78231#M35488</guid>
      <dc:creator>theanhdo</dc:creator>
      <dc:date>2024-07-11T00:39:53Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks Asset Bundles library dependencies - JAR file</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-asset-bundles-library-dependencies-jar-file/m-p/78876#M35630</link>
      <description>&lt;P&gt;Thanks very much&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/9"&gt;@Retired_mod&lt;/a&gt;&amp;nbsp;for your thorough answer.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jul 2024 23:57:22 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-asset-bundles-library-dependencies-jar-file/m-p/78876#M35630</guid>
      <dc:creator>theanhdo</dc:creator>
      <dc:date>2024-07-15T23:57:22Z</dc:date>
    </item>
  </channel>
</rss>

