<?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 Connect Databricks to Airflow in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/connect-databricks-to-airflow/m-p/101652#M40761</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have Databricks on top of aws. I have a Databricks connection on Airflow (mwaa). I am able to conect and execute a Datbricks job via Airflow using a personal access token. I believe the best practice is to conect using a service principal. I understand that I should use the connection id and the secret in order to conect but I get error 401 which I believe it is a result of incorrect Oauth M2M.&lt;/P&gt;&lt;P&gt;Can someone share a light on how it should be done?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Tue, 10 Dec 2024 19:26:01 GMT</pubDate>
    <dc:creator>T_I</dc:creator>
    <dc:date>2024-12-10T19:26:01Z</dc:date>
    <item>
      <title>Connect Databricks to Airflow</title>
      <link>https://community.databricks.com/t5/data-engineering/connect-databricks-to-airflow/m-p/101652#M40761</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have Databricks on top of aws. I have a Databricks connection on Airflow (mwaa). I am able to conect and execute a Datbricks job via Airflow using a personal access token. I believe the best practice is to conect using a service principal. I understand that I should use the connection id and the secret in order to conect but I get error 401 which I believe it is a result of incorrect Oauth M2M.&lt;/P&gt;&lt;P&gt;Can someone share a light on how it should be done?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Dec 2024 19:26:01 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/connect-databricks-to-airflow/m-p/101652#M40761</guid>
      <dc:creator>T_I</dc:creator>
      <dc:date>2024-12-10T19:26:01Z</dc:date>
    </item>
    <item>
      <title>Re: Connect Databricks to Airflow</title>
      <link>https://community.databricks.com/t5/data-engineering/connect-databricks-to-airflow/m-p/101654#M40763</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/61825"&gt;@T_I&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Have you followed this guide?&amp;nbsp;&lt;A href="https://docs.databricks.com/en/dev-tools/auth/oauth-m2m.html" target="_blank" rel="noopener"&gt;https://docs.databricks.com/en/dev-tools/auth/oauth-m2m.html&lt;/A&gt;&lt;/P&gt;
&lt;P class="p1"&gt;You will have to use these 2 parameters from the service principal:&lt;/P&gt;
&lt;UL class="ul1"&gt;
&lt;UL class="ul1"&gt;
&lt;LI class="li1"&gt;DATABRICKS_CLIENT_ID: The service principal’s client ID.&lt;/LI&gt;
&lt;LI class="li1"&gt;DATABRICKS_CLIENT_SECRET: The service principal’s secret.&lt;/LI&gt;
&lt;/UL&gt;
&lt;/UL&gt;</description>
      <pubDate>Tue, 10 Dec 2024 19:43:37 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/connect-databricks-to-airflow/m-p/101654#M40763</guid>
      <dc:creator>Alberto_Umana</dc:creator>
      <dc:date>2024-12-10T19:43:37Z</dc:date>
    </item>
    <item>
      <title>Re: Connect Databricks to Airflow</title>
      <link>https://community.databricks.com/t5/data-engineering/connect-databricks-to-airflow/m-p/101711#M40781</link>
      <description>&lt;P&gt;I have followed this guide but I do not understand how to implement step 4 -&amp;nbsp;OAuth M2M authentication...&lt;BR /&gt;If you could assist, it would be greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2024 08:41:44 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/connect-databricks-to-airflow/m-p/101711#M40781</guid>
      <dc:creator>T_I</dc:creator>
      <dc:date>2024-12-11T08:41:44Z</dc:date>
    </item>
    <item>
      <title>Re: Connect Databricks to Airflow</title>
      <link>https://community.databricks.com/t5/data-engineering/connect-databricks-to-airflow/m-p/101765#M40818</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/61825"&gt;@T_I&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Instead of the PAT token you have to specify the below settings to be able to use the Service Principal:&lt;/P&gt;
&lt;P class="compound-middle"&gt;For&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A class="reference external" href="https://docs.databricks.com/api/workspace" target="_blank" rel="noopener"&gt;workspace-level operations&lt;/A&gt;, set the following environment variables:&lt;/P&gt;
&lt;UL class="compound-last simple"&gt;
&lt;LI&gt;
&lt;P&gt;&lt;CODE class="docutils literal notranslate"&gt;&lt;SPAN class="pre"&gt;DATABRICKS_HOST&lt;/SPAN&gt;&lt;/CODE&gt;, set to the Databricks&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A class="reference internal" href="https://docs.databricks.com/en/workspace/workspace-details.html#workspace-url" target="_blank"&gt;&lt;SPAN class="std std-ref"&gt;workspace URL&lt;/SPAN&gt;&lt;/A&gt;, for example&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE class="docutils literal notranslate"&gt;&lt;SPAN class="pre"&gt;&lt;A href="https://dbc-a1b2345c-d6e7.cloud.databricks.com" target="_blank"&gt;https://dbc-a1b2345c-d6e7.cloud.databricks.com&lt;/A&gt;&lt;/SPAN&gt;&lt;/CODE&gt;.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;&lt;CODE class="docutils literal notranslate"&gt;&lt;SPAN class="pre"&gt;DATABRICKS_CLIENT_ID&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;&lt;CODE class="docutils literal notranslate"&gt;&lt;SPAN class="pre"&gt;DATABRICKS_CLIENT_SECRET&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Wed, 11 Dec 2024 13:29:03 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/connect-databricks-to-airflow/m-p/101765#M40818</guid>
      <dc:creator>Alberto_Umana</dc:creator>
      <dc:date>2024-12-11T13:29:03Z</dc:date>
    </item>
    <item>
      <title>Re: Connect Databricks to Airflow</title>
      <link>https://community.databricks.com/t5/data-engineering/connect-databricks-to-airflow/m-p/101767#M40820</link>
      <description>&lt;P&gt;Where should I specify those settings?&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2024 13:36:01 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/connect-databricks-to-airflow/m-p/101767#M40820</guid>
      <dc:creator>T_I</dc:creator>
      <dc:date>2024-12-11T13:36:01Z</dc:date>
    </item>
    <item>
      <title>Re: Connect Databricks to Airflow</title>
      <link>https://community.databricks.com/t5/data-engineering/connect-databricks-to-airflow/m-p/113478#M44550</link>
      <description>&lt;P&gt;&lt;A href="https://airflow.apache.org/docs/apache-airflow-providers-databricks/6.9.0/connections/databricks.html" target="_blank"&gt;https://airflow.apache.org/docs/apache-airflow-providers-databricks/6.9.0/connections/databricks.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Mar 2025 08:50:32 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/connect-databricks-to-airflow/m-p/113478#M44550</guid>
      <dc:creator>Sloka</dc:creator>
      <dc:date>2025-03-25T08:50:32Z</dc:date>
    </item>
  </channel>
</rss>

