<?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: How to use Serverless as DBT-CLI compute? in Warehousing &amp; Analytics</title>
    <link>https://community.databricks.com/t5/warehousing-analytics/how-to-use-serverless-as-dbt-cli-compute/m-p/75673#M1414</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for your help!&lt;/P&gt;&lt;P&gt;Unfortunately our problem is not the Databricks-CLI we're using on local machines. The problem is the DBT-CLI which we are trying to run on serverless compute inside a Databricks-Workflow.&lt;/P&gt;&lt;P&gt;I already tried adding the code you posted as a task before the DBT-task. That didn't help. I currently see no way of making the python code run directly in the DBT-task.&lt;/P&gt;&lt;P&gt;Any other ideas? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 25 Jun 2024 08:10:39 GMT</pubDate>
    <dc:creator>dbph</dc:creator>
    <dc:date>2024-06-25T08:10:39Z</dc:date>
    <item>
      <title>How to use Serverless as DBT-CLI compute?</title>
      <link>https://community.databricks.com/t5/warehousing-analytics/how-to-use-serverless-as-dbt-cli-compute/m-p/75521#M1402</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;we'd like to use serverless as the compute for DBT-CLI (of course we already used Serverless SQL before) in a DBT workflow.&lt;/P&gt;&lt;P&gt;I configured a normal DBT-task and tried to run a dbt-run command, which i previously tested sucessfully on my local machine.&lt;/P&gt;&lt;P&gt;However, when executing the same dbt-run command while using serverless as DBT CLI I get the following error message:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Encountered an error:
Runtime Error
  Database Error
    HTTPSConnectionPool(host='my_host', port=443): Max retries exceeded with url: my_warehouse_url (Caused by SSLError(SSLError(5, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:1007)')))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Databricks serverless documentation mentions such errors:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;"Python clients that use Databricks endpoints may encounter SSL verification errors such as “CERTIFICATE_VERIFY_FAILED”. To work around these errors, configure the client to trust the CA file located in /etc/ssl/certs/ca-certificates.crt. For example, run the following command at the beginning of a serverless notebook or job: import os; os.environ['SSL_CERT_FILE'] = '/etc/ssl/certs/ca-certificates.crt'"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried exactly this and added a task in the same job before the DBT-task and executed the python part mentioned above, but this didn't solve the problem.&lt;/P&gt;&lt;P&gt;Did anyone manage to use Serverless as DBT-CLI?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sun, 23 Jun 2024 20:58:39 GMT</pubDate>
      <guid>https://community.databricks.com/t5/warehousing-analytics/how-to-use-serverless-as-dbt-cli-compute/m-p/75521#M1402</guid>
      <dc:creator>dbph</dc:creator>
      <dc:date>2024-06-23T20:58:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Serverless as DBT-CLI compute?</title>
      <link>https://community.databricks.com/t5/warehousing-analytics/how-to-use-serverless-as-dbt-cli-compute/m-p/75673#M1414</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for your help!&lt;/P&gt;&lt;P&gt;Unfortunately our problem is not the Databricks-CLI we're using on local machines. The problem is the DBT-CLI which we are trying to run on serverless compute inside a Databricks-Workflow.&lt;/P&gt;&lt;P&gt;I already tried adding the code you posted as a task before the DBT-task. That didn't help. I currently see no way of making the python code run directly in the DBT-task.&lt;/P&gt;&lt;P&gt;Any other ideas? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2024 08:10:39 GMT</pubDate>
      <guid>https://community.databricks.com/t5/warehousing-analytics/how-to-use-serverless-as-dbt-cli-compute/m-p/75673#M1414</guid>
      <dc:creator>dbph</dc:creator>
      <dc:date>2024-06-25T08:10:39Z</dc:date>
    </item>
  </channel>
</rss>

