<?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 bundle in Get Started Discussions</title>
    <link>https://community.databricks.com/t5/get-started-discussions/databricks-bundle/m-p/94537#M4430</link>
    <description>&lt;P&gt;Hey,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I am new to Databricks, and I am trying to test the mlops-stack bundle.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Within that bundle there is a &lt;A href="https://github.com/databricks/mlops-stacks/blob/main/template/%7B%7B.input_root_dir%7D%7D/%7B%7Btemplate%20%60project_name_alphanumeric_underscore%60%20.%7D%7D/resources/feature-engineering-workflow-resource.yml.tmpl" target="_self"&gt;feature-engineering workflow&lt;/A&gt;&amp;nbsp;and I have a problem to make it run.&amp;nbsp;&lt;BR /&gt;The main problem is the following.&lt;BR /&gt;the bundle specified the target to be $bundle.target which is in my case would be &lt;STRONG&gt;dev&lt;/STRONG&gt;. I have created the &lt;STRONG&gt;dev&lt;/STRONG&gt; catalog and within the project schema according to the template.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;The issue is that when I run the workflow, the notebook fails at&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;from databricks.feature_engineering import FeatureEngineeringClient

fe = FeatureEngineeringClient()

# Create the feature table if it does not exist first.
# Note that this is a no-op if a table with the same name and schema already exists.
fe.create_table(
    name=output_table_name,    
    primary_keys=[x.strip() for x in pk_columns.split(",")] + [ts_column],  # Include timeseries column in primary_keys
    timestamp_keys=[ts_column],
    df=features_df,
)

# Write the computed features dataframe.
fe.write_table(
    name=output_table_name,
    df=features_df,
    mode="merge",
)&lt;/LI-CODE&gt;&lt;P&gt;I am getting that:&lt;BR /&gt;&lt;SPAN&gt;ValueError: Catalog 'dev' does not exist in the metastore.&lt;BR /&gt;And I don't understand why?. If I ran the notebook through my own cluster.&lt;BR /&gt;&lt;BR /&gt;I tried to give all privileges to all users in the workspace, but it did not help.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 17 Oct 2024 11:13:30 GMT</pubDate>
    <dc:creator>david_nagy</dc:creator>
    <dc:date>2024-10-17T11:13:30Z</dc:date>
    <item>
      <title>Databricks bundle</title>
      <link>https://community.databricks.com/t5/get-started-discussions/databricks-bundle/m-p/94537#M4430</link>
      <description>&lt;P&gt;Hey,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I am new to Databricks, and I am trying to test the mlops-stack bundle.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Within that bundle there is a &lt;A href="https://github.com/databricks/mlops-stacks/blob/main/template/%7B%7B.input_root_dir%7D%7D/%7B%7Btemplate%20%60project_name_alphanumeric_underscore%60%20.%7D%7D/resources/feature-engineering-workflow-resource.yml.tmpl" target="_self"&gt;feature-engineering workflow&lt;/A&gt;&amp;nbsp;and I have a problem to make it run.&amp;nbsp;&lt;BR /&gt;The main problem is the following.&lt;BR /&gt;the bundle specified the target to be $bundle.target which is in my case would be &lt;STRONG&gt;dev&lt;/STRONG&gt;. I have created the &lt;STRONG&gt;dev&lt;/STRONG&gt; catalog and within the project schema according to the template.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;The issue is that when I run the workflow, the notebook fails at&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;from databricks.feature_engineering import FeatureEngineeringClient

fe = FeatureEngineeringClient()

# Create the feature table if it does not exist first.
# Note that this is a no-op if a table with the same name and schema already exists.
fe.create_table(
    name=output_table_name,    
    primary_keys=[x.strip() for x in pk_columns.split(",")] + [ts_column],  # Include timeseries column in primary_keys
    timestamp_keys=[ts_column],
    df=features_df,
)

# Write the computed features dataframe.
fe.write_table(
    name=output_table_name,
    df=features_df,
    mode="merge",
)&lt;/LI-CODE&gt;&lt;P&gt;I am getting that:&lt;BR /&gt;&lt;SPAN&gt;ValueError: Catalog 'dev' does not exist in the metastore.&lt;BR /&gt;And I don't understand why?. If I ran the notebook through my own cluster.&lt;BR /&gt;&lt;BR /&gt;I tried to give all privileges to all users in the workspace, but it did not help.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2024 11:13:30 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/databricks-bundle/m-p/94537#M4430</guid>
      <dc:creator>david_nagy</dc:creator>
      <dc:date>2024-10-17T11:13:30Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks bundle</title>
      <link>https://community.databricks.com/t5/get-started-discussions/databricks-bundle/m-p/94543#M4431</link>
      <description>&lt;P&gt;The &lt;STRONG&gt;dev&lt;/STRONG&gt; you mention in the bundle target is different from the &lt;STRONG&gt;dev&lt;/STRONG&gt; catalog.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What is the value of "output_table_name". If its a 3 namespace value&amp;nbsp; catalog_name.db_name.table_name please make sure you have write access to that catalog and dbname.&lt;/P&gt;
&lt;P&gt;Read more here&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.databricks.com/en/dev-tools/bundles/deployment-modes.html" target="_blank"&gt;https://docs.databricks.com/en/dev-tools/bundles/deployment-modes.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2024 11:33:01 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/databricks-bundle/m-p/94543#M4431</guid>
      <dc:creator>gchandra</dc:creator>
      <dc:date>2024-10-17T11:33:01Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks bundle</title>
      <link>https://community.databricks.com/t5/get-started-discussions/databricks-bundle/m-p/94546#M4432</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/8379"&gt;@gchandra&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Thanks for the answer. the output table name is what is inside the databricks templated mlops-stack.&lt;BR /&gt;Regarding the $bundle.target&lt;BR /&gt;according to your(Databricks commented) databricks.yml:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;# Deployment Target specific values for workspace&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;targets&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;dev&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;# UC Catalog Name &lt;FONT color="#FF0000"&gt;&amp;lt;---it is commented here&amp;nbsp;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;default&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;true&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;workspace&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;# TODO: add dev workspace URL&lt;BR /&gt;&lt;BR /&gt;So if it is not the created catalog then, what is the target? I am following your mlops-stack to the letter.&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 17 Oct 2024 11:38:53 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/databricks-bundle/m-p/94546#M4432</guid>
      <dc:creator>david_nagy</dc:creator>
      <dc:date>2024-10-17T11:38:53Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks bundle</title>
      <link>https://community.databricks.com/t5/get-started-discussions/databricks-bundle/m-p/94551#M4433</link>
      <description>&lt;P&gt;Apologies, I misread your question.&lt;/P&gt;
&lt;P&gt;Can you please share your databricks.yml file or the URL you followed?&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2024 11:49:48 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/databricks-bundle/m-p/94551#M4433</guid>
      <dc:creator>gchandra</dc:creator>
      <dc:date>2024-10-17T11:49:48Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks bundle</title>
      <link>https://community.databricks.com/t5/get-started-discussions/databricks-bundle/m-p/94552#M4434</link>
      <description>&lt;P&gt;This is the mlops-stack which I am trying to follow.&lt;BR /&gt;&lt;A href="https://github.com/databricks/mlops-stacks/tree/main/template/%7B%7B.input_root_dir%7D%7D/%7B%7Btemplate%20%60project_name_alphanumeric_underscore%60%20.%7D%7D" target="_blank"&gt;https://github.com/databricks/mlops-stacks/tree/main/template/%7B%7B.input_root_dir%7D%7D/%7B%7Btemplate%20%60project_name_alphanumeric_underscore%60%20.%7D%7D&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I instantiated it by:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;databricks bundle init mlops-stack&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I am first try to test all project related workflow in dev, and how they are interacts, and later I want to test with CICD, so I can deploy across 3 different workspaces (dev/staging/prod).&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2024 11:54:33 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/databricks-bundle/m-p/94552#M4434</guid>
      <dc:creator>david_nagy</dc:creator>
      <dc:date>2024-10-17T11:54:33Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks bundle</title>
      <link>https://community.databricks.com/t5/get-started-discussions/databricks-bundle/m-p/94564#M4435</link>
      <description>&lt;P&gt;When I execute the notebook through&amp;nbsp;&lt;EM&gt;databricks bundle run -t dev write_feature_table_job&amp;nbsp;&lt;BR /&gt;&lt;/EM&gt;I printed the available catalogs and I only got spark_catalog.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2024 13:18:59 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/databricks-bundle/m-p/94564#M4435</guid>
      <dc:creator>david_nagy</dc:creator>
      <dc:date>2024-10-17T13:18:59Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks bundle</title>
      <link>https://community.databricks.com/t5/get-started-discussions/databricks-bundle/m-p/94565#M4436</link>
      <description>&lt;P&gt;Is your workspace UC enabled?&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2024 13:25:04 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/databricks-bundle/m-p/94565#M4436</guid>
      <dc:creator>gchandra</dc:creator>
      <dc:date>2024-10-17T13:25:04Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks bundle</title>
      <link>https://community.databricks.com/t5/get-started-discussions/databricks-bundle/m-p/94569#M4437</link>
      <description>&lt;P&gt;Yes it is.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2024 13:43:50 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/databricks-bundle/m-p/94569#M4437</guid>
      <dc:creator>david_nagy</dc:creator>
      <dc:date>2024-10-17T13:43:50Z</dc:date>
    </item>
  </channel>
</rss>

