<?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 Databricks Asset Bundle - Job Cluster - JDBC HTTP Path in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/databricks-asset-bundle-job-cluster-jdbc-http-path/m-p/83847#M37043</link>
    <description>&lt;P&gt;I am currently working on deploying dbt jobs using a Databricks Asset Bundle. In my existing job configuration, I am using an all-purpose cluster and the JDBC HTTP Path was manually copied from the web UI. Now that I am trying to switch to using a job cluster and deploying everything via DAB, I'm unsure how I would reference the HTTP Path using substitutions. Is there any variable which refers to the current resource? Something like "${this}"?&lt;/P&gt;</description>
    <pubDate>Wed, 21 Aug 2024 20:16:00 GMT</pubDate>
    <dc:creator>tonypiazza</dc:creator>
    <dc:date>2024-08-21T20:16:00Z</dc:date>
    <item>
      <title>Databricks Asset Bundle - Job Cluster - JDBC HTTP Path</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-asset-bundle-job-cluster-jdbc-http-path/m-p/83847#M37043</link>
      <description>&lt;P&gt;I am currently working on deploying dbt jobs using a Databricks Asset Bundle. In my existing job configuration, I am using an all-purpose cluster and the JDBC HTTP Path was manually copied from the web UI. Now that I am trying to switch to using a job cluster and deploying everything via DAB, I'm unsure how I would reference the HTTP Path using substitutions. Is there any variable which refers to the current resource? Something like "${this}"?&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2024 20:16:00 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-asset-bundle-job-cluster-jdbc-http-path/m-p/83847#M37043</guid>
      <dc:creator>tonypiazza</dc:creator>
      <dc:date>2024-08-21T20:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks Asset Bundle - Job Cluster - JDBC HTTP Path</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-asset-bundle-job-cluster-jdbc-http-path/m-p/105981#M42329</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To reference the HTTP Path using substitutions in Databricks Asset Bundles and job clusters, you can use the &lt;CODE&gt;variables&lt;/CODE&gt; section in your &lt;CODE&gt;databricks.yml&lt;/CODE&gt; configuration file&lt;/P&gt;
&lt;P&gt;In your &lt;CODE&gt;databricks.yml&lt;/CODE&gt; file, you can define a variable for the HTTP Path. For example:&lt;/P&gt;
&lt;P class="_1t7bu9h1 paragraph"&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="gb5fhw2"&gt;
&lt;PRE&gt;&lt;CODE class="markdown-code-yaml _1t7bu9hb hljs language-yaml gb5fhw3"&gt;&lt;SPAN class="hljs-attr"&gt;bundle:&lt;/SPAN&gt;
  &lt;SPAN class="hljs-attr"&gt;name:&lt;/SPAN&gt; &lt;SPAN class="hljs-string"&gt;my-databricks-bundle&lt;/SPAN&gt;
  &lt;SPAN class="hljs-attr"&gt;variables:&lt;/SPAN&gt;
    &lt;SPAN class="hljs-attr"&gt;http_path:&lt;/SPAN&gt;
      &lt;SPAN class="hljs-attr"&gt;description:&lt;/SPAN&gt; &lt;SPAN class="hljs-string"&gt;"HTTP Path for the Databricks cluster"&lt;/SPAN&gt;
      &lt;SPAN class="hljs-attr"&gt;default:&lt;/SPAN&gt; &lt;SPAN class="hljs-string"&gt;"your-http-path-here"&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="_1t7bu9h1 paragraph"&gt;You can then reference this variable in other parts of your configuration file using the &lt;CODE&gt;${variables.&amp;lt;variable-name&amp;gt;}&lt;/CODE&gt; syntax. For example, if you need to use the HTTP Path in a job configuration, you can do it like this:&lt;/P&gt;
&lt;P class="_1t7bu9h1 paragraph"&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="gb5fhw2"&gt;
&lt;PRE&gt;&lt;CODE class="markdown-code-yaml _1t7bu9hb hljs language-yaml gb5fhw3"&gt;&lt;SPAN class="hljs-attr"&gt;resources:&lt;/SPAN&gt;
  &lt;SPAN class="hljs-attr"&gt;jobs:&lt;/SPAN&gt;
    &lt;SPAN class="hljs-attr"&gt;my-job:&lt;/SPAN&gt;
      &lt;SPAN class="hljs-attr"&gt;name:&lt;/SPAN&gt; &lt;SPAN class="hljs-string"&gt;"My Job"&lt;/SPAN&gt;
      &lt;SPAN class="hljs-attr"&gt;tasks:&lt;/SPAN&gt;
        &lt;SPAN class="hljs-bullet"&gt;-&lt;/SPAN&gt; &lt;SPAN class="hljs-attr"&gt;task_key:&lt;/SPAN&gt; &lt;SPAN class="hljs-string"&gt;my-task&lt;/SPAN&gt;
          &lt;SPAN class="hljs-attr"&gt;existing_cluster_id:&lt;/SPAN&gt; &lt;SPAN class="hljs-string"&gt;"your-cluster-id"&lt;/SPAN&gt;
          &lt;SPAN class="hljs-attr"&gt;notebook_task:&lt;/SPAN&gt;
            &lt;SPAN class="hljs-attr"&gt;notebook_path:&lt;/SPAN&gt; &lt;SPAN class="hljs-string"&gt;"/path/to/your/notebook"&lt;/SPAN&gt;
            &lt;SPAN class="hljs-attr"&gt;base_parameters:&lt;/SPAN&gt;
              &lt;SPAN class="hljs-attr"&gt;http_path:&lt;/SPAN&gt; &lt;SPAN class="hljs-string"&gt;"${variables.http_path}"&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;P class="_1t7bu9h1 paragraph"&gt;When deploying the bundle, the variable &lt;CODE&gt;${variables.http_path}&lt;/CODE&gt; will be substituted with the value defined in the &lt;CODE&gt;variables&lt;/CODE&gt; section.&lt;/P&gt;
&lt;P class="_1t7bu9h1 paragraph"&gt;&lt;A href="https://docs.databricks.com/en/dev-tools/bundles/settings.html#variables" target="_blank"&gt;https://docs.databricks.com/en/dev-tools/bundles/settings.html#variables&lt;/A&gt;&lt;/P&gt;
&lt;P class="_1t7bu9h1 paragraph"&gt;&lt;CODE class="markdown-code-yaml _1t7bu9hb hljs language-yaml gb5fhw3"&gt;&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2025 18:01:58 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-asset-bundle-job-cluster-jdbc-http-path/m-p/105981#M42329</guid>
      <dc:creator>Satyadeepak</dc:creator>
      <dc:date>2025-01-16T18:01:58Z</dc:date>
    </item>
  </channel>
</rss>

