<?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: Running jar on Databricks cluster from Airflow in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/running-jar-on-databricks-cluster-from-airflow/m-p/81795#M36413</link>
    <description>&lt;P&gt;Thank you for the reply. Is there any other way to run the main class of jar file from Airflow? using any particular APIs?&lt;/P&gt;</description>
    <pubDate>Mon, 05 Aug 2024 06:37:37 GMT</pubDate>
    <dc:creator>ayush19</dc:creator>
    <dc:date>2024-08-05T06:37:37Z</dc:date>
    <item>
      <title>Running jar on Databricks cluster from Airflow</title>
      <link>https://community.databricks.com/t5/data-engineering/running-jar-on-databricks-cluster-from-airflow/m-p/81415#M36298</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have a jar file which is installed on a cluster. I need to run this jar from Airflow using DatabricksSubmitRunOperator. I followed the standard instructions as available on Airflow docs&lt;/P&gt;&lt;P&gt;&lt;A href="https://airflow.apache.org/docs/apache-airflow-providers-databricks/1.0.0/operators.html" target="_blank"&gt;https://airflow.apache.org/docs/apache-airflow-providers-databricks/1.0.0/operators.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;There is a parameter which is passed to the Operator, "libraries" which is supposed to contain the path to jar file. Since the jar file is already installed on the cluster, I don't wish to provide any specific path to jar. I tried few things but everything seems to be failing&lt;/P&gt;&lt;P&gt;1. Did not include libraries parameter - Failed with an error that it is required&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ayush19_0-1722491889219.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/10062i9A6CF525C5D05B29/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="ayush19_0-1722491889219.png" alt="ayush19_0-1722491889219.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. Added libraries parameter but kept it empty - Failed with an error that it needs some value&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ayush19_1-1722491926724.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/10063iBC6D4C9621786363/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="ayush19_1-1722491926724.png" alt="ayush19_1-1722491926724.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3. Added path to jar file where it is stored - Failed with an error because it tried to install the jar to cluster and the user does not have 'manage' permission to do so&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ayush19_2-1722491964523.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/10064i994B5DCF0584A199/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="ayush19_2-1722491964523.png" alt="ayush19_2-1722491964523.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;4. Passed 'jar' key but value as empty - Got error&amp;nbsp;&lt;SPAN&gt;"Library installation failed for library due to user error. Error messages:\nJava JARs must be stored in UC Volumes, dbfs, s3, adls, gs or as a workspace file/local file. Make sure the URI begins with 'dbfs:', 'file:', 's3:', 'abfss:', 'gs:', 'wasbs:', '/Volumes', or '/Workspace'but the URI is ''&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ayush19_3-1722492023707.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/10065iBB04E9FFDD931849/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="ayush19_3-1722492023707.png" alt="ayush19_3-1722492023707.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;What should I do so that I can run the jar which is already installed on the cluster? Is there any dummy value I can use instead of mentioning jar file path?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Again, the actual jar which I want to use is already installed on the cluster and do not actually want to install anything else. I have ran the main class of this jar file from notebook and it ran fine&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2024 06:06:57 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/running-jar-on-databricks-cluster-from-airflow/m-p/81415#M36298</guid>
      <dc:creator>ayush19</dc:creator>
      <dc:date>2024-08-01T06:06:57Z</dc:date>
    </item>
    <item>
      <title>Re: Running jar on Databricks cluster from Airflow</title>
      <link>https://community.databricks.com/t5/data-engineering/running-jar-on-databricks-cluster-from-airflow/m-p/81795#M36413</link>
      <description>&lt;P&gt;Thank you for the reply. Is there any other way to run the main class of jar file from Airflow? using any particular APIs?&lt;/P&gt;</description>
      <pubDate>Mon, 05 Aug 2024 06:37:37 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/running-jar-on-databricks-cluster-from-airflow/m-p/81795#M36413</guid>
      <dc:creator>ayush19</dc:creator>
      <dc:date>2024-08-05T06:37:37Z</dc:date>
    </item>
  </channel>
</rss>

