<?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 academy error setup - Free Edition with Serverless Compute in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/databricks-academy-error-setup-free-edition-with-serverless/m-p/141119#M51622</link>
    <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/155141"&gt;@ManojkMohan&lt;/a&gt;&amp;nbsp;as mentioned in the first post I already used&amp;nbsp;&lt;SPAN&gt;dict(spark.conf.getAll()).get(key, default) where possible.&lt;BR /&gt;However the problem stands when importing modules, like:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;- from&lt;/SPAN&gt;&lt;SPAN&gt; dbacademy &lt;/SPAN&gt;&lt;SPAN&gt;import&lt;/SPAN&gt;&lt;SPAN&gt; dbgems&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;- from dbacademy.dbhelper import DBAcademyHelper, Paths, CourseConfig, LessonConfig&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;- from&lt;/SPAN&gt;&lt;SPAN&gt; dbacademy.dbhelper.validations.validation_helper_class &lt;/SPAN&gt;&lt;SPAN&gt;import&lt;/SPAN&gt;&lt;SPAN&gt; ValidationHelper&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I also tried to use the last release (&lt;A href="https://github.com/databricks-academy/dbacademy/releases/tag/v5.0.11" target="_self"&gt;Release v5.0.11 · databricks-academy/dbacademy)&lt;/A&gt;, without success.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;Finally, the idea of setting manually the missing keys with spark.conf.set is failing too, raising the same exception for the missing key:&lt;BR /&gt;--------------------------------------------------------------&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;spark.conf.&lt;/SPAN&gt;&lt;SPAN&gt;set&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"missing_key"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"default"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;[CONFIG_NOT_AVAILABLE] Configuration missing_key is not available. SQLSTATE: 42K0I&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;SPAN&gt;--------------------------------------------------------------&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 04 Dec 2025 08:59:10 GMT</pubDate>
    <dc:creator>iFoxz17</dc:creator>
    <dc:date>2025-12-04T08:59:10Z</dc:date>
    <item>
      <title>Databricks academy error setup - Free Edition with Serverless Compute</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-academy-error-setup-free-edition-with-serverless/m-p/141046#M51613</link>
      <description>&lt;P&gt;Databricks is passing from the Community Edition to the Free Edition, which I am currently using.&lt;/P&gt;&lt;P&gt;When executing the Includes/Classroom-setup notebooks the following exception is raised: [CONFIG_NOT_AVAILABLE]&lt;SPAN&gt;&amp;nbsp;Configuration dbacademy.deprecation.logging is not available. SQLSTATE: 42K0I&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Inspecting the code, the problem seems to be related to the spark.conf.get() method, which is declared as follows in the documentation of the academy repo&lt;/P&gt;&lt;P&gt;---------------------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;get(self, key: str, default: Union[str, NoneType, pyspark._globals._NoValueType] = &amp;lt;no value&amp;gt;) -&amp;gt; Optional[str] Parameters&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;key : str | key of the configuration to get.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;default : str, optional | value of the configuration to get if the key does not exist.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Returns The string value of the configuration set, or None.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Examples : spark.conf.get("non-existent-key", "my_default")&amp;nbsp; // 'my_default'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;--------------------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;However, testing the method clearly shows that it is raising an exception instead of returning the default value for the missing key.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This seems to be solvable using&amp;nbsp;spark.conf.getAll.get(key, default), where&amp;nbsp;spark.conf.getAll is retuning a python dict containing all the configurations. However, this problem is present also in the inner code of the&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"v3.0.23" dbacademy library version I am using, which raises the [CONFIG_NOT_AVAILABLE] error when importing modules of the library (in my case the&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;dbgems module).&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Dec 2025 17:47:25 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-academy-error-setup-free-edition-with-serverless/m-p/141046#M51613</guid>
      <dc:creator>iFoxz17</dc:creator>
      <dc:date>2025-12-03T17:47:25Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks academy error setup - Free Edition with Serverless Compute</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-academy-error-setup-free-edition-with-serverless/m-p/141074#M51619</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/199684"&gt;@iFoxz17&lt;/a&gt;&amp;nbsp;The CONFIG_NOT_AVAILABLE error (SQLSTATE: 42K0I) occurs because spark.conf.get(key) in Databricks Free Edition throws an exception for missing configuration keys like dbacademy.deprecation.logging, instead of returning the default value as expected from PySpark documentation&lt;/P&gt;&lt;P&gt;Solution thinking:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Use spark.conf.getAll(): Replace spark.conf.get(key, default) with dict(spark.conf.getAll()).get(key, default) to safely retrieve configs without exceptions, as your testing confirmed&lt;/LI&gt;&lt;LI&gt;Example: version = dict(spark.conf.getAll()).get("dbacademy.deprecation.logging", "default_value")&lt;/LI&gt;&lt;LI&gt;Pre-set configurations: Add spark.conf.set("dbacademy.deprecation.logging", "false") (or appropriate value) at the notebook start before imports&amp;nbsp;&lt;A href="https://community.databricks.com/t5/data-engineering/databricks-academy-setup-error-data-engineering/td-p/90844" target="_blank"&gt;https://community.databricks.com/t5/data-engineering/databricks-academy-setup-error-data-engineering/td-p/90844&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Switch to DBR 13.3 LTS if available in Free Edition for better compatibility&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Check for newer dbacademy versions via %pip install --upgrade dbacademy&amp;nbsp;Check for newer dbacademy versions via %pip install --upgrade dbacademy&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Wed, 03 Dec 2025 20:44:39 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-academy-error-setup-free-edition-with-serverless/m-p/141074#M51619</guid>
      <dc:creator>ManojkMohan</dc:creator>
      <dc:date>2025-12-03T20:44:39Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks academy error setup - Free Edition with Serverless Compute</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-academy-error-setup-free-edition-with-serverless/m-p/141119#M51622</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/155141"&gt;@ManojkMohan&lt;/a&gt;&amp;nbsp;as mentioned in the first post I already used&amp;nbsp;&lt;SPAN&gt;dict(spark.conf.getAll()).get(key, default) where possible.&lt;BR /&gt;However the problem stands when importing modules, like:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;- from&lt;/SPAN&gt;&lt;SPAN&gt; dbacademy &lt;/SPAN&gt;&lt;SPAN&gt;import&lt;/SPAN&gt;&lt;SPAN&gt; dbgems&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;- from dbacademy.dbhelper import DBAcademyHelper, Paths, CourseConfig, LessonConfig&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;- from&lt;/SPAN&gt;&lt;SPAN&gt; dbacademy.dbhelper.validations.validation_helper_class &lt;/SPAN&gt;&lt;SPAN&gt;import&lt;/SPAN&gt;&lt;SPAN&gt; ValidationHelper&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I also tried to use the last release (&lt;A href="https://github.com/databricks-academy/dbacademy/releases/tag/v5.0.11" target="_self"&gt;Release v5.0.11 · databricks-academy/dbacademy)&lt;/A&gt;, without success.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;Finally, the idea of setting manually the missing keys with spark.conf.set is failing too, raising the same exception for the missing key:&lt;BR /&gt;--------------------------------------------------------------&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;spark.conf.&lt;/SPAN&gt;&lt;SPAN&gt;set&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"missing_key"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"default"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;[CONFIG_NOT_AVAILABLE] Configuration missing_key is not available. SQLSTATE: 42K0I&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;SPAN&gt;--------------------------------------------------------------&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 04 Dec 2025 08:59:10 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-academy-error-setup-free-edition-with-serverless/m-p/141119#M51622</guid>
      <dc:creator>iFoxz17</dc:creator>
      <dc:date>2025-12-04T08:59:10Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks academy error setup - Free Edition with Serverless Compute</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-academy-error-setup-free-edition-with-serverless/m-p/141124#M51625</link>
      <description>&lt;P&gt;Free edition doesn't have DBR versioning as it is serverless, doesn't allow spark.conf.set etc...&lt;/P&gt;</description>
      <pubDate>Thu, 04 Dec 2025 09:45:37 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-academy-error-setup-free-edition-with-serverless/m-p/141124#M51625</guid>
      <dc:creator>Hubert-Dudek</dc:creator>
      <dc:date>2025-12-04T09:45:37Z</dc:date>
    </item>
  </channel>
</rss>

