<?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 Issue with Validation After DBFS to Volume Migration in Databricks Workspace in Get Started Discussions</title>
    <link>https://community.databricks.com/t5/get-started-discussions/issue-with-validation-after-dbfs-to-volume-migration-in/m-p/104502#M4711</link>
    <description>&lt;P&gt;Hello Databricks Community,&lt;/P&gt;&lt;P&gt;I have successfully migrated my DBFS (Databricks File System) from a source workspace to a target workspace, moving it from a path in &lt;STRONG&gt;Browse DBFS -&amp;gt; Folders&lt;/STRONG&gt; to a &lt;STRONG&gt;Catalog -&amp;gt; Schema -&amp;gt; Volume&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;Now, I want to validate the migration to ensure that everything was copied correctly. Specifically, I want to check:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Folder sizes&lt;/LI&gt;&lt;LI&gt;Folder names and subdirectories&lt;/LI&gt;&lt;LI&gt;Ensure that the folder sizes in the source and target workspaces match&lt;/LI&gt;&lt;LI&gt;Verify that folder names and structure in the source match those in the target workspace&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I attempted some validation scripts, but they haven’t worked as expected. Could someone guide me on how I can perform these checks to ensure the migration was successful?&lt;/P&gt;&lt;P&gt;I appreciate your help in suggesting a better approach or providing a working solution.&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
    <pubDate>Tue, 07 Jan 2025 12:22:49 GMT</pubDate>
    <dc:creator>Sudheer2</dc:creator>
    <dc:date>2025-01-07T12:22:49Z</dc:date>
    <item>
      <title>Issue with Validation After DBFS to Volume Migration in Databricks Workspace</title>
      <link>https://community.databricks.com/t5/get-started-discussions/issue-with-validation-after-dbfs-to-volume-migration-in/m-p/104502#M4711</link>
      <description>&lt;P&gt;Hello Databricks Community,&lt;/P&gt;&lt;P&gt;I have successfully migrated my DBFS (Databricks File System) from a source workspace to a target workspace, moving it from a path in &lt;STRONG&gt;Browse DBFS -&amp;gt; Folders&lt;/STRONG&gt; to a &lt;STRONG&gt;Catalog -&amp;gt; Schema -&amp;gt; Volume&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;Now, I want to validate the migration to ensure that everything was copied correctly. Specifically, I want to check:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Folder sizes&lt;/LI&gt;&lt;LI&gt;Folder names and subdirectories&lt;/LI&gt;&lt;LI&gt;Ensure that the folder sizes in the source and target workspaces match&lt;/LI&gt;&lt;LI&gt;Verify that folder names and structure in the source match those in the target workspace&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I attempted some validation scripts, but they haven’t worked as expected. Could someone guide me on how I can perform these checks to ensure the migration was successful?&lt;/P&gt;&lt;P&gt;I appreciate your help in suggesting a better approach or providing a working solution.&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jan 2025 12:22:49 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/issue-with-validation-after-dbfs-to-volume-migration-in/m-p/104502#M4711</guid>
      <dc:creator>Sudheer2</dc:creator>
      <dc:date>2025-01-07T12:22:49Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Validation After DBFS to Volume Migration in Databricks Workspace</title>
      <link>https://community.databricks.com/t5/get-started-discussions/issue-with-validation-after-dbfs-to-volume-migration-in/m-p/104503#M4712</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/104469"&gt;@Sudheer2&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;You can use the &lt;CODE&gt;dbutils.fs.ls&lt;/CODE&gt; command to list the folder names and subdirectories in both the source and target workspaces.&lt;/P&gt;
&lt;P&gt;For example:&lt;/P&gt;
&lt;P&gt;def get_folder_structure(path):&lt;BR /&gt;folders = dbutils.fs.ls(path)&lt;BR /&gt;folder_names = [folder.name for folder in folders]&lt;BR /&gt;return folder_names&lt;/P&gt;
&lt;P&gt;source_folders = get_folder_structure("dbfs:/source_folder_path")&lt;BR /&gt;target_folders = get_folder_structure("target_folder_path")&lt;/P&gt;
&lt;P&gt;assert source_folders == target_folders, "Folder structures do not match"&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jan 2025 12:33:28 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/issue-with-validation-after-dbfs-to-volume-migration-in/m-p/104503#M4712</guid>
      <dc:creator>Alberto_Umana</dc:creator>
      <dc:date>2025-01-07T12:33:28Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Validation After DBFS to Volume Migration in Databricks Workspace</title>
      <link>https://community.databricks.com/t5/get-started-discussions/issue-with-validation-after-dbfs-to-volume-migration-in/m-p/104551#M4714</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;&lt;BR /&gt;"Thanks for the suggestion! However, since I'm now working with volumes in &lt;STRONG&gt;Unity Catalog&lt;/STRONG&gt; (after migrating from DBFS), I need to list folders and subfolders inside a volume located in &lt;STRONG&gt;catalogs&lt;/STRONG&gt; and &lt;STRONG&gt;schemas&lt;/STRONG&gt; in Unity Catalog, not just in DBFS.&lt;/P&gt;&lt;P&gt;Since Unity Catalog doesn't expose directories the same way as DBFS does, I would like to know if there's a way to list the contents of a &lt;STRONG&gt;volume&lt;/STRONG&gt; (which now holds the migrated data) in a similar way to using dbutils.fs.ls() for DBFS folders. Could you guide me on how I can list the folder structure within volumes in Unity Catalog (catalog -&amp;gt; schema -&amp;gt; volume), especially after migration from Hive Metastore to Unity Catalog?&lt;/P&gt;&lt;P&gt;Thanks in advance for your help!"&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jan 2025 15:43:51 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/issue-with-validation-after-dbfs-to-volume-migration-in/m-p/104551#M4714</guid>
      <dc:creator>Sudheer2</dc:creator>
      <dc:date>2025-01-07T15:43:51Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Validation After DBFS to Volume Migration in Databricks Workspace</title>
      <link>https://community.databricks.com/t5/get-started-discussions/issue-with-validation-after-dbfs-to-volume-migration-in/m-p/104570#M4715</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/104469"&gt;@Sudheer2&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;thanks for your comments, you can try using %sh magic to list the folder and sub-directores using unix-like commands&amp;nbsp;&lt;/P&gt;
&lt;P&gt;for example:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Alberto_Umana_0-1736266471184.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/13924iDF1542DC93169187/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Alberto_Umana_0-1736266471184.png" alt="Alberto_Umana_0-1736266471184.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jan 2025 16:14:42 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/issue-with-validation-after-dbfs-to-volume-migration-in/m-p/104570#M4715</guid>
      <dc:creator>Alberto_Umana</dc:creator>
      <dc:date>2025-01-07T16:14:42Z</dc:date>
    </item>
  </channel>
</rss>

