<?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 MissingCredentialScopeException when writing hail matrix table to unity volumes in Get Started Discussions</title>
    <link>https://community.databricks.com/t5/get-started-discussions/missingcredentialscopeexception-when-writing-hail-matrix-table/m-p/54694#M6221</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am tinkering with using Unity Catalog Volumes with &lt;A href="https://hail.is/docs/0.2/index.html" target="_self"&gt;hail&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I tried the following&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;hl_1000g.write(
    str(VOLUMES_PATH / '1kg.mt'), 
    overwrite=True
)&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;Where 'VOLUMES_PATH' is `&lt;SPAN&gt;Path&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"/Volumes"&lt;/SPAN&gt;&lt;SPAN&gt;) &lt;/SPAN&gt;&lt;SPAN&gt;/&lt;/SPAN&gt; &lt;SPAN&gt;"hail"&lt;/SPAN&gt; &lt;SPAN&gt;/&lt;/SPAN&gt; &lt;SPAN&gt;"volumes_testing"&lt;/SPAN&gt; &lt;SPAN&gt;/&lt;/SPAN&gt; &lt;SPAN&gt;"1kg"`&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Unfortunately this results in the following error:&lt;/P&gt;&lt;P&gt;FatalError: MissingCredentialScopeException: [UNITY_CREDENTIAL_SCOPE_MISSING_SCOPE] Missing Credential Scope. Current env: Driver.&lt;/P&gt;&lt;P&gt;My current work around is to save the matrix table to a temp path, and then copy over to unity volumes. The reverse order is then required to read the matrix table.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know what spark configuration might be required in order for me to read / write to this volume directly from hail?&lt;/P&gt;&lt;P&gt;Alexis&lt;/P&gt;</description>
    <pubDate>Tue, 05 Dec 2023 22:51:17 GMT</pubDate>
    <dc:creator>alexiswl</dc:creator>
    <dc:date>2023-12-05T22:51:17Z</dc:date>
    <item>
      <title>MissingCredentialScopeException when writing hail matrix table to unity volumes</title>
      <link>https://community.databricks.com/t5/get-started-discussions/missingcredentialscopeexception-when-writing-hail-matrix-table/m-p/54694#M6221</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am tinkering with using Unity Catalog Volumes with &lt;A href="https://hail.is/docs/0.2/index.html" target="_self"&gt;hail&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I tried the following&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;hl_1000g.write(
    str(VOLUMES_PATH / '1kg.mt'), 
    overwrite=True
)&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;Where 'VOLUMES_PATH' is `&lt;SPAN&gt;Path&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"/Volumes"&lt;/SPAN&gt;&lt;SPAN&gt;) &lt;/SPAN&gt;&lt;SPAN&gt;/&lt;/SPAN&gt; &lt;SPAN&gt;"hail"&lt;/SPAN&gt; &lt;SPAN&gt;/&lt;/SPAN&gt; &lt;SPAN&gt;"volumes_testing"&lt;/SPAN&gt; &lt;SPAN&gt;/&lt;/SPAN&gt; &lt;SPAN&gt;"1kg"`&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Unfortunately this results in the following error:&lt;/P&gt;&lt;P&gt;FatalError: MissingCredentialScopeException: [UNITY_CREDENTIAL_SCOPE_MISSING_SCOPE] Missing Credential Scope. Current env: Driver.&lt;/P&gt;&lt;P&gt;My current work around is to save the matrix table to a temp path, and then copy over to unity volumes. The reverse order is then required to read the matrix table.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know what spark configuration might be required in order for me to read / write to this volume directly from hail?&lt;/P&gt;&lt;P&gt;Alexis&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2023 22:51:17 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/missingcredentialscopeexception-when-writing-hail-matrix-table/m-p/54694#M6221</guid>
      <dc:creator>alexiswl</dc:creator>
      <dc:date>2023-12-05T22:51:17Z</dc:date>
    </item>
  </channel>
</rss>

