<?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: How to Migrate Legacy Dashboards from hive_metastore to Unity Catalog  using Python in Get Started Discussions</title>
    <link>https://community.databricks.com/t5/get-started-discussions/how-to-migrate-legacy-dashboards-from-hive-metastore-to-unity/m-p/120360#M10100</link>
    <description>&lt;P&gt;For your consideration:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="paragraph"&gt;To migrate legacy dashboards from the Hive Metastore to Unity Catalog in Databricks programmatically while retaining SQL queries, data visualizations, and ensuring compatibility with Unity Catalog schemas and tables using Python, here are some approaches and best practices based on the search results:&lt;/DIV&gt;
&lt;OL start="1"&gt;
&lt;LI&gt;
&lt;DIV class="paragraph"&gt;&lt;STRONG&gt;Migration of SQL Queries&lt;/STRONG&gt;:
&lt;UL&gt;
&lt;LI&gt;You can migrate SQL queries by rewriting them to use Unity Catalog's three-level namespace (&lt;CODE&gt;catalog.schema.table&lt;/CODE&gt;), which is required for Unity Catalog compatibility.&lt;/LI&gt;
&lt;LI&gt;If your SQL queries use tables from the Hive Metastore, these tables should first be migrated to Unity Catalog using utilities like &lt;CODE&gt;CREATE TABLE AS SELECT&lt;/CODE&gt; or &lt;CODE&gt;CREATE TABLE CLONE&lt;/CODE&gt; (preferably deep clones for Delta tables, which preserve Delta logs).&lt;/LI&gt;
&lt;/UL&gt;
&lt;/DIV&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV class="paragraph"&gt;&lt;STRONG&gt;Migrating Data Visualizations&lt;/STRONG&gt;:
&lt;UL&gt;
&lt;LI&gt;Data visualizations tied to queries in the legacy dashboards can be recreated by cloning the dashboards. Databricks provides tools for cloning legacy dashboards to Lakeview dashboards, which offers expanded API support for creating, getting, and updating dashboards programmatically.&lt;/LI&gt;
&lt;LI&gt;Queries and visualizations can be copied to create new dashboards from the SQL editor, ensuring minimal modification during migration.&lt;/LI&gt;
&lt;/UL&gt;
&lt;/DIV&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV class="paragraph"&gt;&lt;STRONG&gt;Compatibility with Unity Catalog Schemas/Tables&lt;/STRONG&gt;:
&lt;UL&gt;
&lt;LI&gt;Make sure the schema and table definitions are adjusted for Unity Catalog. Unity Catalog supports managed tables in Delta format as well as external tables.&lt;/LI&gt;
&lt;LI&gt;Use the &lt;CODE&gt;SYNC&lt;/CODE&gt; SQL command or Hive Metastore federation to migrate external tables or enable a hybrid workspace for incremental migration.&lt;/LI&gt;
&lt;LI&gt;For external locations, ensure adequate setup of Unity Catalog-managed access controls and storage credentials.&lt;/LI&gt;
&lt;/UL&gt;
&lt;/DIV&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV class="paragraph"&gt;&lt;STRONG&gt;Python Automation&lt;/STRONG&gt;:
&lt;UL&gt;
&lt;LI&gt;The Databricks Python SDK can be utilized for orchestrating migration processes. You can identify and migrate tables programmatically by leveraging SDK utilities (&lt;CODE&gt;databricks.sdk.service.catalog&lt;/CODE&gt;) or issuing SQL commands programmatically via Databricks compute resources.&lt;/LI&gt;
&lt;LI&gt;Databricks recommends using deep clone operations for managed Delta tables or the &lt;CODE&gt;CREATE TABLE AS SELECT&lt;/CODE&gt; approach for broader migration options.&lt;/LI&gt;
&lt;LI&gt;Dashboards can be manipulated programmatically using Databricks SQL Queries and Dashboard APIs.&lt;/LI&gt;
&lt;/UL&gt;
&lt;/DIV&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV class="paragraph"&gt;&lt;STRONG&gt;Additional Considerations for Dashboard Migration&lt;/STRONG&gt;:
&lt;UL&gt;
&lt;LI&gt;If dropdown list parameters or query-backed parameters exist in legacy dashboards, these should be migrated to comply with Unity Catalog standards.&lt;/LI&gt;
&lt;LI&gt;Legacy dashboards can be cloned to Lakeview dashboards programmatically, making it easier to move previously embedded SQL queries and visualizations.&lt;/LI&gt;
&lt;/UL&gt;
&lt;/DIV&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV class="paragraph"&gt;&lt;STRONG&gt;Recommended Tools and Resources&lt;/STRONG&gt;:
&lt;UL&gt;
&lt;LI&gt;Enable Hive Metastore federation to maintain access to Hive tables during active migration processes. Federation simplifies incremental migration by allowing query execution from both Hive Metastore and Unity Catalog during the transition.&lt;/LI&gt;
&lt;LI&gt;Prioritize migration tools like the UCX toolkit for managing schema and table upgrades and handling both managed and external Unity Catalog tables.&lt;/LI&gt;
&lt;/UL&gt;
&lt;/DIV&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;DIV class="paragraph"&gt;Challenges or additional steps may apply depending on the specifics of your dashboards or infrastructure. For a seamless migration, carefully assess data dependencies, storage formats, and any legacy constructs that may require adaptation to comply with Unity Catalog standards. Always test the migrated dashboards and data pipelines in a staging environment before final deployment.&lt;/DIV&gt;</description>
    <pubDate>Tue, 27 May 2025 18:19:39 GMT</pubDate>
    <dc:creator>Louis_Frolio</dc:creator>
    <dc:date>2025-05-27T18:19:39Z</dc:date>
    <item>
      <title>How to Migrate Legacy Dashboards from hive_metastore to Unity Catalog  using Python</title>
      <link>https://community.databricks.com/t5/get-started-discussions/how-to-migrate-legacy-dashboards-from-hive-metastore-to-unity/m-p/120340#M10099</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;After updating the legacy dashboard APIs, I’m looking to &lt;STRONG&gt;migrate legacy dashboards&lt;/STRONG&gt; from the hive_metastore to &lt;STRONG&gt;Unity Catalog&lt;/STRONG&gt; in Databricks. Specifically, I want to programmatically:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;Migrate SQL queries used in dashboards&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Retain or recreate the associated &lt;STRONG&gt;data visualizations&lt;/STRONG&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Ensure compatibility with Unity Catalog schemas/tables&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Perform the migration &lt;STRONG&gt;using Python&lt;/STRONG&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Has anyone successfully done this, or is there any recommended approach or API support for this kind of end-to-end migration?&lt;/P&gt;&lt;P&gt;Appreciate any guidance, best practices, or script examples.&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Tue, 27 May 2025 16:14:36 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/how-to-migrate-legacy-dashboards-from-hive-metastore-to-unity/m-p/120340#M10099</guid>
      <dc:creator>Sudheer2</dc:creator>
      <dc:date>2025-05-27T16:14:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to Migrate Legacy Dashboards from hive_metastore to Unity Catalog  using Python</title>
      <link>https://community.databricks.com/t5/get-started-discussions/how-to-migrate-legacy-dashboards-from-hive-metastore-to-unity/m-p/120360#M10100</link>
      <description>&lt;P&gt;For your consideration:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="paragraph"&gt;To migrate legacy dashboards from the Hive Metastore to Unity Catalog in Databricks programmatically while retaining SQL queries, data visualizations, and ensuring compatibility with Unity Catalog schemas and tables using Python, here are some approaches and best practices based on the search results:&lt;/DIV&gt;
&lt;OL start="1"&gt;
&lt;LI&gt;
&lt;DIV class="paragraph"&gt;&lt;STRONG&gt;Migration of SQL Queries&lt;/STRONG&gt;:
&lt;UL&gt;
&lt;LI&gt;You can migrate SQL queries by rewriting them to use Unity Catalog's three-level namespace (&lt;CODE&gt;catalog.schema.table&lt;/CODE&gt;), which is required for Unity Catalog compatibility.&lt;/LI&gt;
&lt;LI&gt;If your SQL queries use tables from the Hive Metastore, these tables should first be migrated to Unity Catalog using utilities like &lt;CODE&gt;CREATE TABLE AS SELECT&lt;/CODE&gt; or &lt;CODE&gt;CREATE TABLE CLONE&lt;/CODE&gt; (preferably deep clones for Delta tables, which preserve Delta logs).&lt;/LI&gt;
&lt;/UL&gt;
&lt;/DIV&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV class="paragraph"&gt;&lt;STRONG&gt;Migrating Data Visualizations&lt;/STRONG&gt;:
&lt;UL&gt;
&lt;LI&gt;Data visualizations tied to queries in the legacy dashboards can be recreated by cloning the dashboards. Databricks provides tools for cloning legacy dashboards to Lakeview dashboards, which offers expanded API support for creating, getting, and updating dashboards programmatically.&lt;/LI&gt;
&lt;LI&gt;Queries and visualizations can be copied to create new dashboards from the SQL editor, ensuring minimal modification during migration.&lt;/LI&gt;
&lt;/UL&gt;
&lt;/DIV&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV class="paragraph"&gt;&lt;STRONG&gt;Compatibility with Unity Catalog Schemas/Tables&lt;/STRONG&gt;:
&lt;UL&gt;
&lt;LI&gt;Make sure the schema and table definitions are adjusted for Unity Catalog. Unity Catalog supports managed tables in Delta format as well as external tables.&lt;/LI&gt;
&lt;LI&gt;Use the &lt;CODE&gt;SYNC&lt;/CODE&gt; SQL command or Hive Metastore federation to migrate external tables or enable a hybrid workspace for incremental migration.&lt;/LI&gt;
&lt;LI&gt;For external locations, ensure adequate setup of Unity Catalog-managed access controls and storage credentials.&lt;/LI&gt;
&lt;/UL&gt;
&lt;/DIV&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV class="paragraph"&gt;&lt;STRONG&gt;Python Automation&lt;/STRONG&gt;:
&lt;UL&gt;
&lt;LI&gt;The Databricks Python SDK can be utilized for orchestrating migration processes. You can identify and migrate tables programmatically by leveraging SDK utilities (&lt;CODE&gt;databricks.sdk.service.catalog&lt;/CODE&gt;) or issuing SQL commands programmatically via Databricks compute resources.&lt;/LI&gt;
&lt;LI&gt;Databricks recommends using deep clone operations for managed Delta tables or the &lt;CODE&gt;CREATE TABLE AS SELECT&lt;/CODE&gt; approach for broader migration options.&lt;/LI&gt;
&lt;LI&gt;Dashboards can be manipulated programmatically using Databricks SQL Queries and Dashboard APIs.&lt;/LI&gt;
&lt;/UL&gt;
&lt;/DIV&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV class="paragraph"&gt;&lt;STRONG&gt;Additional Considerations for Dashboard Migration&lt;/STRONG&gt;:
&lt;UL&gt;
&lt;LI&gt;If dropdown list parameters or query-backed parameters exist in legacy dashboards, these should be migrated to comply with Unity Catalog standards.&lt;/LI&gt;
&lt;LI&gt;Legacy dashboards can be cloned to Lakeview dashboards programmatically, making it easier to move previously embedded SQL queries and visualizations.&lt;/LI&gt;
&lt;/UL&gt;
&lt;/DIV&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV class="paragraph"&gt;&lt;STRONG&gt;Recommended Tools and Resources&lt;/STRONG&gt;:
&lt;UL&gt;
&lt;LI&gt;Enable Hive Metastore federation to maintain access to Hive tables during active migration processes. Federation simplifies incremental migration by allowing query execution from both Hive Metastore and Unity Catalog during the transition.&lt;/LI&gt;
&lt;LI&gt;Prioritize migration tools like the UCX toolkit for managing schema and table upgrades and handling both managed and external Unity Catalog tables.&lt;/LI&gt;
&lt;/UL&gt;
&lt;/DIV&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;DIV class="paragraph"&gt;Challenges or additional steps may apply depending on the specifics of your dashboards or infrastructure. For a seamless migration, carefully assess data dependencies, storage formats, and any legacy constructs that may require adaptation to comply with Unity Catalog standards. Always test the migrated dashboards and data pipelines in a staging environment before final deployment.&lt;/DIV&gt;</description>
      <pubDate>Tue, 27 May 2025 18:19:39 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/how-to-migrate-legacy-dashboards-from-hive-metastore-to-unity/m-p/120360#M10100</guid>
      <dc:creator>Louis_Frolio</dc:creator>
      <dc:date>2025-05-27T18:19:39Z</dc:date>
    </item>
  </channel>
</rss>

