<?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 While Creating Feature Table under Hive Metastore in Data Governance</title>
    <link>https://community.databricks.com/t5/data-governance/error-while-creating-feature-table-under-hive-metastore/m-p/98472#M2251</link>
    <description>&lt;P&gt;&lt;SPAN&gt;As of version 0.17.0,&amp;nbsp;&lt;/SPAN&gt;&lt;CODE class="docutils literal notranslate"&gt;&lt;SPAN class="pre"&gt;databricks-feature-store&lt;/SPAN&gt;&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;has been deprecated. All existing modules from this package are now available in&amp;nbsp;&lt;/SPAN&gt;&lt;CODE class="docutils literal notranslate"&gt;&lt;SPAN class="pre"&gt;databricks-feature-engineering&lt;/SPAN&gt;&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;version 0.2.0 and later. For information about migrating to&amp;nbsp;&lt;/SPAN&gt;&lt;CODE class="docutils literal notranslate"&gt;&lt;SPAN class="pre"&gt;databricks-feature-engineering&lt;/SPAN&gt;&lt;/CODE&gt;&lt;SPAN&gt;, see&amp;nbsp;&lt;/SPAN&gt;&lt;A class="reference internal" href="https://docs.databricks.com/en/machine-learning/feature-store/python-api.html#migrate-to-feature-engineering" target="_blank"&gt;&lt;SPAN class="std std-ref"&gt;Migrate to databricks-feature-engineering&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 12 Nov 2024 13:59:26 GMT</pubDate>
    <dc:creator>Walter_C</dc:creator>
    <dc:date>2024-11-12T13:59:26Z</dc:date>
    <item>
      <title>Error While Creating Feature Table under Hive Metastore</title>
      <link>https://community.databricks.com/t5/data-governance/error-while-creating-feature-table-under-hive-metastore/m-p/98467#M2250</link>
      <description>&lt;P&gt;Hi Databricks Community,&lt;BR /&gt;I'm currently trying to create a feature table under the Hive metastore in the source workspace and migrate it later to Unity Catalog. Below is the code I am using:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;from pyspark.sql.types import StructType, StructField, StringType, Integer Type&lt;BR /&gt;from databricks.feature_store import FeatureStoreClient&lt;BR /&gt;&lt;BR /&gt;def compute_customer_features(data):&lt;BR /&gt;schema = StructType([&lt;BR /&gt;StructField("customer_id", StringType(), True),&lt;BR /&gt;StructField("feature1", IntegerType(), True),&lt;BR /&gt;StructField("feature2", IntegerType(), True)&lt;BR /&gt;])&lt;BR /&gt;data = [("cust1", 10, 100), ("cust2", 20, 200)]&lt;BR /&gt;return spark.createDataFrame(data, schema)&lt;BR /&gt;&lt;BR /&gt;# Assuming df is defined earlier in your code. Replace with actual DataFrame.&lt;BR /&gt;df1 = None # Placeholder. Replace with actual DataFrame initialization.&lt;BR /&gt;&lt;BR /&gt;customer_features_df1 = compute_customer_features(df1)&lt;BR /&gt;&lt;BR /&gt;fs = FeatureStoreClient()&lt;BR /&gt;&lt;BR /&gt;# Create the database if it does not exist&lt;BR /&gt;spark.sql("CREATE DATABASE IF NOT EXISTS recommender_system")&lt;BR /&gt;&lt;BR /&gt;customer_feature_table = fs.create_table(&lt;BR /&gt;name='recommender_system.customer_features_01',&lt;BR /&gt;primary_keys=['customer_id'],&lt;BR /&gt;schema=customer_features_df1.schema,&lt;BR /&gt;description='Customer features'&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;fs.write_table(&lt;BR /&gt;name='recommender_system.customer_features_01',&lt;BR /&gt;df=customer_features_df1,&lt;BR /&gt;mode='overwrite'&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;display(customer_features_df1) But getting this below error&lt;BR /&gt;"&lt;BR /&gt;Exception: {'error_code': 'NOT_FOUND', 'message': 'Workspace Feature Store has been deprecated in the current workspace. Databricks recommends using Feature Engineering in Unity Catalog. Please reach out to system admin if you have any more questions.'}&lt;BR /&gt;&lt;BR /&gt;So can you please help me to understand this issue, and can you help me to understand how to create feature table under hive metastore&lt;BR /&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Tue, 12 Nov 2024 13:19:02 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-governance/error-while-creating-feature-table-under-hive-metastore/m-p/98467#M2250</guid>
      <dc:creator>jv_v</dc:creator>
      <dc:date>2024-11-12T13:19:02Z</dc:date>
    </item>
    <item>
      <title>Re: Error While Creating Feature Table under Hive Metastore</title>
      <link>https://community.databricks.com/t5/data-governance/error-while-creating-feature-table-under-hive-metastore/m-p/98472#M2251</link>
      <description>&lt;P&gt;&lt;SPAN&gt;As of version 0.17.0,&amp;nbsp;&lt;/SPAN&gt;&lt;CODE class="docutils literal notranslate"&gt;&lt;SPAN class="pre"&gt;databricks-feature-store&lt;/SPAN&gt;&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;has been deprecated. All existing modules from this package are now available in&amp;nbsp;&lt;/SPAN&gt;&lt;CODE class="docutils literal notranslate"&gt;&lt;SPAN class="pre"&gt;databricks-feature-engineering&lt;/SPAN&gt;&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;version 0.2.0 and later. For information about migrating to&amp;nbsp;&lt;/SPAN&gt;&lt;CODE class="docutils literal notranslate"&gt;&lt;SPAN class="pre"&gt;databricks-feature-engineering&lt;/SPAN&gt;&lt;/CODE&gt;&lt;SPAN&gt;, see&amp;nbsp;&lt;/SPAN&gt;&lt;A class="reference internal" href="https://docs.databricks.com/en/machine-learning/feature-store/python-api.html#migrate-to-feature-engineering" target="_blank"&gt;&lt;SPAN class="std std-ref"&gt;Migrate to databricks-feature-engineering&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Nov 2024 13:59:26 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-governance/error-while-creating-feature-table-under-hive-metastore/m-p/98472#M2251</guid>
      <dc:creator>Walter_C</dc:creator>
      <dc:date>2024-11-12T13:59:26Z</dc:date>
    </item>
  </channel>
</rss>

