<?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: Scalable ML course error on Lab Setup (Community Edition) in Machine Learning</title>
    <link>https://community.databricks.com/t5/machine-learning/scalable-ml-course-error-on-lab-setup-community-edition/m-p/36979#M1925</link>
    <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/73785"&gt;@JCV&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/84307"&gt;@raviPrakash_21&lt;/a&gt;&lt;/P&gt;&lt;P&gt;After reviewing the DBAcademyHelper code, I have seen that the problem is that the Community Edition does not have the following features:&lt;BR /&gt;-Feature Store&lt;BR /&gt;-MLflow Model Registry&lt;BR /&gt;-MLflow Endpoints&lt;/P&gt;&lt;P&gt;I have read that the reason is that in the Community Edition they do not offer tools for production. I think it would be a good idea to include these features but limited (for example, that the Feature Store, Model Registry, Endpoints restart from the Community Edition after several hours), so no one can use Databricks for free in production, but the people we want to do the courses we could use it.&lt;/P&gt;&lt;P&gt;It is possible to modify the setup code to do some exercises, but I don't recommend it because it only allows you to do 1 or 2 exercises (the ones that only use MLflow Experiments), to complete the rest you would need to have Model Registry available.&lt;/P&gt;&lt;P&gt;---&lt;/P&gt;&lt;P&gt;If someone is interested in the setup code, these are the modifications that I made in "Includes/Classroom-Setup".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;class CommunityEditionDBAcademyHelper(DBAcademyHelper):

    def cleanup(self, validate_datasets: bool = True) -&amp;gt; None:
        from dbacademy.dbhelper.dataset_manager_class import DatasetManager
        from dbacademy.dbhelper.workspace_cleaner_class import WorkspaceCleaner
        
        wc = WorkspaceCleaner(self)
        status = False
        if self.lesson_config.name is None:
            print(f"Resetting the learning environment:")
        else:
            print(f"Resetting the learning environment ({self.lesson_config.name}):")

        dbgems.spark.catalog.clearCache()
        status = wc._stop_all_streams() or status

        if self.lesson_config.enable_ml_support:
            try:
                status = wc._drop_feature_store_tables(lesson_only=True) or status
            except:
                print("WARNING: Feature Store not available!")
            try:
                status = wc._cleanup_mlflow_endpoints(lesson_only=True) or status
            except:
                print("WARNING: MLflow Model Registry not available!")
            try:
                status = wc._cleanup_mlflow_models(lesson_only=True) or status
            except:
                print("WARNING: Feature Store not available!")
            status = wc._cleanup_experiments(lesson_only=True) or status

        status = wc._drop_catalog() or status
        status = wc._drop_schema() or status

        # Always last to remove DB files that are not removed by sql-drop operations.
        status = wc._cleanup_working_dir() or status

        if not status:
            print("| No action taken")
        
        if validate_datasets:
            DatasetManager.from_dbacademy_helper(self).validate_datasets(fail_fast=True)
        
    
    def reset_lesson(self):
        return self.cleanup(validate_datasets=False)
    
    def reset_learning_environment(self):
        from dbacademy.dbhelper.workspace_cleaner_class import WorkspaceCleaner
    
        wc = WorkspaceCleaner(self)
        print("Resetting the learning environment for all lessons:")

        start = dbgems.clock_start()

        dbgems.spark.catalog.clearCache()
        wc._stop_all_streams()

        if self.lesson_config.enable_ml_support:
            try:
                wc._drop_feature_store_tables(lesson_only=False)
            except:
                print("WARNING: Feature Store not available!")
            try:
                wc._cleanup_mlflow_endpoints(lesson_only=False)
            except:
                print("WARNING: MLflow Model Registry not available!")
            try:
                wc._cleanup_mlflow_models(lesson_only=False)
            except:
                print("WARNING: Feature Store not available!")
            wc._cleanup_experiments(lesson_only=False)

        wc._reset_databases()
        wc._reset_datasets()
        wc._reset_working_dir()

        print(f"| the learning environment was successfully reset {dbgems.clock_stopped(start)}.")


import re

DA = CommunityEditionDBAcademyHelper(course_config, lesson_config)
DA.reset_lesson()
DA.init()

DA.init_mlflow_as_job()

DA.conclude_setup()&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 05 Jul 2023 08:06:03 GMT</pubDate>
    <dc:creator>iago_gonzalez</dc:creator>
    <dc:date>2023-07-05T08:06:03Z</dc:date>
    <item>
      <title>Scalable ML course error on Lab Setup (Community Edition)</title>
      <link>https://community.databricks.com/t5/machine-learning/scalable-ml-course-error-on-lab-setup-community-edition/m-p/3933#M171</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to complete the exercises of the course "Scalable Machine Learning with Apache Spark" using Databricks Community Edition, but when I run the Lab Setup I get the following error:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;HTTPError: 503 Server Error: Service Unavailable for url: &lt;A href="https://community.cloud.databricks.com/api/2.0/feature-store/feature-tables/search?max_results=1000000000" target="test_blank"&gt;https://community.cloud.databricks.com/api/2.0/feature-store/feature-tables/search?max_results=1000000000&lt;/A&gt;
 Response from server: 
 { 'error_code': 'TEMPORARILY_UNAVAILABLE',
  'message': 'The service at /api/2.0/feature-store/feature-tables/search is '
             'temporarily unavailable. Please try again later.'}
Command skipped&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;It seems that the error is thrown when executing the following code in the "Classroom-Setup" script:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;import re
&amp;nbsp;
DA = DBAcademyHelper(course_config, lesson_config)
DA.reset_lesson()
DA.init()
&amp;nbsp;
DA.init_mlflow_as_job()
&amp;nbsp;
DA.conclude_setup()&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;How could I fix this error?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2023 08:11:36 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/scalable-ml-course-error-on-lab-setup-community-edition/m-p/3933#M171</guid>
      <dc:creator>iago_gonzalez</dc:creator>
      <dc:date>2023-05-29T08:11:36Z</dc:date>
    </item>
    <item>
      <title>Re: Scalable ML course error on Lab Setup (Community Edition)</title>
      <link>https://community.databricks.com/t5/machine-learning/scalable-ml-course-error-on-lab-setup-community-edition/m-p/3934#M172</link>
      <description>&lt;P&gt;Adding @Suteja Kanuri​&amp;nbsp; and @Vidula Khanna​&amp;nbsp;for visibility.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2023 21:03:17 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/scalable-ml-course-error-on-lab-setup-community-edition/m-p/3934#M172</guid>
      <dc:creator>jose_gonzalez</dc:creator>
      <dc:date>2023-06-14T21:03:17Z</dc:date>
    </item>
    <item>
      <title>Re: Scalable ML course error on Lab Setup (Community Edition)</title>
      <link>https://community.databricks.com/t5/machine-learning/scalable-ml-course-error-on-lab-setup-community-edition/m-p/3935#M173</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;Same issue here. @Iago Gonzalez​&amp;nbsp;did you manage to carry on somehow in the meantime? &lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jun 2023 11:04:08 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/scalable-ml-course-error-on-lab-setup-community-edition/m-p/3935#M173</guid>
      <dc:creator>JCV</dc:creator>
      <dc:date>2023-06-15T11:04:08Z</dc:date>
    </item>
    <item>
      <title>Re: Scalable ML course error on Lab Setup (Community Edition)</title>
      <link>https://community.databricks.com/t5/machine-learning/scalable-ml-course-error-on-lab-setup-community-edition/m-p/36890#M1917</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/67954"&gt;@iago_gonzalez&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/73785"&gt;@JCV&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/29880"&gt;@jose_gonzalez&lt;/a&gt;&amp;nbsp;any solution? I am facing the same problem too.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jul 2023 06:15:41 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/scalable-ml-course-error-on-lab-setup-community-edition/m-p/36890#M1917</guid>
      <dc:creator>raviPrakash_21</dc:creator>
      <dc:date>2023-07-04T06:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: Scalable ML course error on Lab Setup (Community Edition)</title>
      <link>https://community.databricks.com/t5/machine-learning/scalable-ml-course-error-on-lab-setup-community-edition/m-p/36910#M1918</link>
      <description>&lt;P&gt;I think it is all related to the fact of using a community edition unfortunately. Unless otherwise stated by someone else fro&amp;nbsp; DB, no solution other than using a "proper" version of it&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jul 2023 08:51:12 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/scalable-ml-course-error-on-lab-setup-community-edition/m-p/36910#M1918</guid>
      <dc:creator>JCV</dc:creator>
      <dc:date>2023-07-04T08:51:12Z</dc:date>
    </item>
    <item>
      <title>Re: Scalable ML course error on Lab Setup (Community Edition)</title>
      <link>https://community.databricks.com/t5/machine-learning/scalable-ml-course-error-on-lab-setup-community-edition/m-p/36979#M1925</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/73785"&gt;@JCV&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/84307"&gt;@raviPrakash_21&lt;/a&gt;&lt;/P&gt;&lt;P&gt;After reviewing the DBAcademyHelper code, I have seen that the problem is that the Community Edition does not have the following features:&lt;BR /&gt;-Feature Store&lt;BR /&gt;-MLflow Model Registry&lt;BR /&gt;-MLflow Endpoints&lt;/P&gt;&lt;P&gt;I have read that the reason is that in the Community Edition they do not offer tools for production. I think it would be a good idea to include these features but limited (for example, that the Feature Store, Model Registry, Endpoints restart from the Community Edition after several hours), so no one can use Databricks for free in production, but the people we want to do the courses we could use it.&lt;/P&gt;&lt;P&gt;It is possible to modify the setup code to do some exercises, but I don't recommend it because it only allows you to do 1 or 2 exercises (the ones that only use MLflow Experiments), to complete the rest you would need to have Model Registry available.&lt;/P&gt;&lt;P&gt;---&lt;/P&gt;&lt;P&gt;If someone is interested in the setup code, these are the modifications that I made in "Includes/Classroom-Setup".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;class CommunityEditionDBAcademyHelper(DBAcademyHelper):

    def cleanup(self, validate_datasets: bool = True) -&amp;gt; None:
        from dbacademy.dbhelper.dataset_manager_class import DatasetManager
        from dbacademy.dbhelper.workspace_cleaner_class import WorkspaceCleaner
        
        wc = WorkspaceCleaner(self)
        status = False
        if self.lesson_config.name is None:
            print(f"Resetting the learning environment:")
        else:
            print(f"Resetting the learning environment ({self.lesson_config.name}):")

        dbgems.spark.catalog.clearCache()
        status = wc._stop_all_streams() or status

        if self.lesson_config.enable_ml_support:
            try:
                status = wc._drop_feature_store_tables(lesson_only=True) or status
            except:
                print("WARNING: Feature Store not available!")
            try:
                status = wc._cleanup_mlflow_endpoints(lesson_only=True) or status
            except:
                print("WARNING: MLflow Model Registry not available!")
            try:
                status = wc._cleanup_mlflow_models(lesson_only=True) or status
            except:
                print("WARNING: Feature Store not available!")
            status = wc._cleanup_experiments(lesson_only=True) or status

        status = wc._drop_catalog() or status
        status = wc._drop_schema() or status

        # Always last to remove DB files that are not removed by sql-drop operations.
        status = wc._cleanup_working_dir() or status

        if not status:
            print("| No action taken")
        
        if validate_datasets:
            DatasetManager.from_dbacademy_helper(self).validate_datasets(fail_fast=True)
        
    
    def reset_lesson(self):
        return self.cleanup(validate_datasets=False)
    
    def reset_learning_environment(self):
        from dbacademy.dbhelper.workspace_cleaner_class import WorkspaceCleaner
    
        wc = WorkspaceCleaner(self)
        print("Resetting the learning environment for all lessons:")

        start = dbgems.clock_start()

        dbgems.spark.catalog.clearCache()
        wc._stop_all_streams()

        if self.lesson_config.enable_ml_support:
            try:
                wc._drop_feature_store_tables(lesson_only=False)
            except:
                print("WARNING: Feature Store not available!")
            try:
                wc._cleanup_mlflow_endpoints(lesson_only=False)
            except:
                print("WARNING: MLflow Model Registry not available!")
            try:
                wc._cleanup_mlflow_models(lesson_only=False)
            except:
                print("WARNING: Feature Store not available!")
            wc._cleanup_experiments(lesson_only=False)

        wc._reset_databases()
        wc._reset_datasets()
        wc._reset_working_dir()

        print(f"| the learning environment was successfully reset {dbgems.clock_stopped(start)}.")


import re

DA = CommunityEditionDBAcademyHelper(course_config, lesson_config)
DA.reset_lesson()
DA.init()

DA.init_mlflow_as_job()

DA.conclude_setup()&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jul 2023 08:06:03 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/scalable-ml-course-error-on-lab-setup-community-edition/m-p/36979#M1925</guid>
      <dc:creator>iago_gonzalez</dc:creator>
      <dc:date>2023-07-05T08:06:03Z</dc:date>
    </item>
    <item>
      <title>Re: Scalable ML course error on Lab Setup (Community Edition)</title>
      <link>https://community.databricks.com/t5/machine-learning/scalable-ml-course-error-on-lab-setup-community-edition/m-p/38020#M1971</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/67954"&gt;@iago_gonzalez&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I'm a regular user of Databricks&amp;nbsp;in my job. It's a nice ecosystem but I find it a shame that the first cell of a notebook in a specialization doesn't run because the 'Community Edition' doesn't allow you to do things that are necessary for the specialization. A lot of wasted time!&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2023 10:30:47 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/scalable-ml-course-error-on-lab-setup-community-edition/m-p/38020#M1971</guid>
      <dc:creator>Steph</dc:creator>
      <dc:date>2023-07-20T10:30:47Z</dc:date>
    </item>
    <item>
      <title>Re: Scalable ML course error on Lab Setup (Community Edition)</title>
      <link>https://community.databricks.com/t5/machine-learning/scalable-ml-course-error-on-lab-setup-community-edition/m-p/51002#M2726</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Has anyone found any solution to that issue? It is confirmed by someone from DB that it is not possible to follow the course with a Community Edition?&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Sun, 12 Nov 2023 20:30:37 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/scalable-ml-course-error-on-lab-setup-community-edition/m-p/51002#M2726</guid>
      <dc:creator>Tone</dc:creator>
      <dc:date>2023-11-12T20:30:37Z</dc:date>
    </item>
    <item>
      <title>Re: Scalable ML course error on Lab Setup (Community Edition)</title>
      <link>https://community.databricks.com/t5/machine-learning/scalable-ml-course-error-on-lab-setup-community-edition/m-p/60754#M3018</link>
      <description>&lt;P&gt;I'm experiencing the same issue while using community edition for this classroom:&amp;nbsp;&lt;A href="https://github.com/databricks-academy/large-language-models" target="_blank"&gt;https://github.com/databricks-academy/large-language-models&lt;/A&gt;. What subscription level do I upgrade to?&lt;/P&gt;</description>
      <pubDate>Sat, 17 Feb 2024 15:25:50 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/scalable-ml-course-error-on-lab-setup-community-edition/m-p/60754#M3018</guid>
      <dc:creator>AK601</dc:creator>
      <dc:date>2024-02-17T15:25:50Z</dc:date>
    </item>
  </channel>
</rss>

