<?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: Error: &amp;quot;[REQUIRES_SINGLE_PART_NAMESPACE] sparkcatalog requires a single-part namespace&amp;quot in Machine Learning</title>
    <link>https://community.databricks.com/t5/machine-learning/error-quot-requires-single-part-namespace-sparkcatalog-requires/m-p/107276#M3923</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/146270"&gt;@Nawneet&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Please refer to this post:&amp;nbsp;&lt;A href="https://community.databricks.com/t5/machine-learning/no-spark-session-available-within-model-serving-environment/m-p/102515" target="_blank"&gt;https://community.databricks.com/t5/machine-learning/no-spark-session-available-within-model-serving-environment/m-p/102515&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Spark session are not directly supported in Model serving.&lt;/P&gt;</description>
    <pubDate>Mon, 27 Jan 2025 17:45:18 GMT</pubDate>
    <dc:creator>Alberto_Umana</dc:creator>
    <dc:date>2025-01-27T17:45:18Z</dc:date>
    <item>
      <title>Error: "[REQUIRES_SINGLE_PART_NAMESPACE] sparkcatalog requires a single-part namespace"</title>
      <link>https://community.databricks.com/t5/machine-learning/error-quot-requires-single-part-namespace-sparkcatalog-requires/m-p/107273#M3921</link>
      <description>&lt;DIV&gt;Hi,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;In my code I am creating a Spark session, that can be to used query the Unity Catalog delta tables.I have an MLFlow Pyfunc model that uses these table to retrieve information. Things work well from my cluster but getting below error from model serving:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;"Error retrieving information for table catlogue_name.schema_name.table_name: [REQUIRES_SINGLE_PART_NAMESPACE] spark_catalog requires a single-part namespace, but got `catlogue_name`.`schema_name`."&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Code Snippet:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;schema="catlogue_name.schema_name"&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;table=table_name&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;full_table_name = f"{schema}.{table_name}"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;try:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; df = spark.read.table(full_table_name)&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;except Exception as e:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;logger.error(f"Error retrieving information for table {full_table_name}: {e}")&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;What am I missing here? Can spark sessions be used from Model Serving? Do I need some authentication to retrieve information from delta tables? Is any specific model packaging step while model registration?&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Mon, 27 Jan 2025 17:35:28 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/error-quot-requires-single-part-namespace-sparkcatalog-requires/m-p/107273#M3921</guid>
      <dc:creator>Nawneet</dc:creator>
      <dc:date>2025-01-27T17:35:28Z</dc:date>
    </item>
    <item>
      <title>Re: Error: "[REQUIRES_SINGLE_PART_NAMESPACE] sparkcatalog requires a single-part namespace&amp;quot</title>
      <link>https://community.databricks.com/t5/machine-learning/error-quot-requires-single-part-namespace-sparkcatalog-requires/m-p/107276#M3923</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/146270"&gt;@Nawneet&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Please refer to this post:&amp;nbsp;&lt;A href="https://community.databricks.com/t5/machine-learning/no-spark-session-available-within-model-serving-environment/m-p/102515" target="_blank"&gt;https://community.databricks.com/t5/machine-learning/no-spark-session-available-within-model-serving-environment/m-p/102515&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Spark session are not directly supported in Model serving.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2025 17:45:18 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/error-quot-requires-single-part-namespace-sparkcatalog-requires/m-p/107276#M3923</guid>
      <dc:creator>Alberto_Umana</dc:creator>
      <dc:date>2025-01-27T17:45:18Z</dc:date>
    </item>
    <item>
      <title>Re: Error: "[REQUIRES_SINGLE_PART_NAMESPACE] sparkcatalog requires a single-part namespace&amp;quot</title>
      <link>https://community.databricks.com/t5/machine-learning/error-quot-requires-single-part-namespace-sparkcatalog-requires/m-p/107320#M3926</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/106294"&gt;@Alberto_Umana&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;But I am not getting exception as "&lt;SPAN&gt;Exception: No SparkSession Available!" ,probably because I am installing that as part of conda environment creation. Spark session is available. Exception is "[REQUIRES_SINGLE_PART_NAMESPACE] spark_catalog requires a single-part namespace" and my complete table name is "catlogue_name.schema_name.table_name" that includes catlogue name schema name and table name.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Kindly suggest.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2025 02:44:12 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/error-quot-requires-single-part-namespace-sparkcatalog-requires/m-p/107320#M3926</guid>
      <dc:creator>Nawneet</dc:creator>
      <dc:date>2025-01-28T02:44:12Z</dc:date>
    </item>
  </channel>
</rss>

