<?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: Getting Access forbidden error to AWS when trying to follow the unity catalog quickstart notebook. in Data Governance</title>
    <link>https://community.databricks.com/t5/data-governance/getting-access-forbidden-error-to-aws-when-trying-to-follow-the/m-p/19063#M667</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please hit metastore list and storage credentials API or CLI to get the detail of metastore and Storage credentials and you can verify the config.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://api-docs.databricks.com/rest/latest/unity-catalog-api-specification-2-1.html" alt="https://api-docs.databricks.com/rest/latest/unity-catalog-api-specification-2-1.html" target="_blank"&gt;https://api-docs.databricks.com/rest/latest/unity-catalog-api-specification-2-1.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.databricks.com/dev-tools/cli/unity-catalog-cli.html#metastores" alt="https://docs.databricks.com/dev-tools/cli/unity-catalog-cli.html#metastores" target="_blank"&gt;https://docs.databricks.com/dev-tools/cli/unity-catalog-cli.html#metastores&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can reconfigure your metastore or update the existing credentials:&lt;/P&gt;&lt;P&gt;To update the metastore with a new storage credential, you can use the following CLI commands.&lt;/P&gt;&lt;P&gt;AWS:&amp;nbsp;&lt;A href="https://docs.databricks.com/dev-tools/cli/unity-catalog-cli.html#metastores" alt="https://docs.databricks.com/dev-tools/cli/unity-catalog-cli.html#metastores" target="_blank"&gt;https://docs.databricks.com/dev-tools/cli/unity-catalog-cli&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Azure:&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/azure/databricks/dev-tools/cli/unity-catalog-cli" alt="https://learn.microsoft.com/en-us/azure/databricks/dev-tools/cli/unity-catalog-cli" target="_blank"&gt;https://learn.microsoft.com/en-us/azure/databricks/dev-tools/cli/unity-catalog-cli&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;databricks --profile test-shard unity-catalog storage-credentials create&lt;/B&gt; \&lt;/P&gt;&lt;P&gt;--json '{"name": "test-role-cred", "aws_iam_role": {"role_arn": "arn:aws:iam:::role/us-east-1-extdev-managed-catalog-test-role"}}'&lt;/P&gt;&lt;P&gt;&lt;B&gt;databricks --profile test-shard unity-catalog metastores update&lt;/B&gt; \ --id bd5c8b05-xyzw-476a-8b4e-08320f9633d2 \ &lt;/P&gt;&lt;P&gt;--json '{"storage_root_credential_id":"3783164d-9887-4b1c-afc6-a0b06cf3f44c"}' &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once the metastore is updated, check the below configs with the highlighted parameters:&lt;/P&gt;&lt;P&gt;&lt;B&gt;Check the storage credentials config&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;databricks unity-catalog list-storage-credentials&lt;/B&gt;&lt;/P&gt;&lt;P&gt;The output should look like this:&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;"storage_credentials": [&lt;/P&gt;&lt;P&gt;&amp;nbsp;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;"id": "9e3e6c22-e765-4da7-xxxx-***",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;"name": "4d173c3e-ee91-4c2f-a890-xxxxxxx-data-access-config-16607430xxxx",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;"aws_iam_role": {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;"role_arn": "arn:aws:I am:::role/my-unity-role",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;"unity_catalog_iam_arn": "arn:aws:iam:::role/unity-catalog-prod-UCMasterRole-14S5ZJVKOWXYZ",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;"external_id": "949b8e6e-f557-4aba-xxxx-***"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;},&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;"owner": "kavya.parag+uc@databricks.com",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;"metastore_id": "4d173c3e-ee91-4c2f-xxxx-***",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;"created_at": 1660743064187,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;"created_by": "kp+uc@databricks.com",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;"updated_at": 1660743064187,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;"updated_by": "kp+uc@databricks.com",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;"&lt;B&gt;used_for_managed_storage&lt;/B&gt;": true&lt;/P&gt;&lt;P&gt;&amp;nbsp;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;]&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;Check the metastore config:&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;databricks unity-catalog list-metastores&lt;/B&gt;&lt;/P&gt;&lt;P&gt;The output should look like this:&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;"metastores": [&lt;/P&gt;&lt;P&gt;&amp;nbsp;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;"name": "kp-test",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;"storage_root": "s3://bucket",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;"&lt;B&gt;default_data_access_config_id&lt;/B&gt;": "9e3e6c22-e765-4da7-xxxx-***",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;"&lt;B&gt;storage_root_credential_id&lt;/B&gt;": "9e3e6c22-e765-4da7-xxxx-***",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;"delta_sharing_scope": "INTERNAL",&lt;/P&gt;&lt;P&gt;"owner": "kp+uc@databricks.com",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;"privilege_model_version": "0.1",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;"metastore_id": "4d173c3e-ee91-4c2f-a890-***",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;"created_at": 1660743063329,&lt;/P&gt;&lt;P&gt;"created_by": "kp+uc@databricks.com",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;"updated_at": 1660743064838,&lt;/P&gt;&lt;P&gt;"updated_by": "kp+uc@databricks.com",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;"cloud": "aws",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;"region": "us-east-1",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;"global_metastore_id": "aws:us-east-1:4d173c3e-ee91-4c2f-xxxx-***"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 02 Dec 2022 20:15:32 GMT</pubDate>
    <dc:creator>Sivaprasad1</dc:creator>
    <dc:date>2022-12-02T20:15:32Z</dc:date>
    <item>
      <title>Getting Access forbidden error to AWS when trying to follow the unity catalog quickstart notebook.</title>
      <link>https://community.databricks.com/t5/data-governance/getting-access-forbidden-error-to-aws-when-trying-to-follow-the/m-p/19062#M666</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I have just created a metastore to allow unity catalog to be enabled for my workspace. However I am getting the following error when trying to create a table as per the unity catalog demo notbook:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error in SQL statement: UnauthorizedAccessException: PERMISSION_DENIED: Access denied. Cause: 403 Forbidden error from cloud storage provider. exceptionTraceId=f5101e43-1f10-4e5f-8c15-0be034d7af8a&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A couple of questions.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;If I delete the metastore will all of the data stored in my original hive-metastore be deleted ie. what existed before I created a metastore to enable unity catalog and assigned this to my existing workspace. &lt;/LI&gt;&lt;LI&gt;Is there a way to re-configure the metastore to check that the credentials are correct?&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Dec 2022 16:38:33 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-governance/getting-access-forbidden-error-to-aws-when-trying-to-follow-the/m-p/19062#M666</guid>
      <dc:creator>190809</dc:creator>
      <dc:date>2022-12-02T16:38:33Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Access forbidden error to AWS when trying to follow the unity catalog quickstart notebook.</title>
      <link>https://community.databricks.com/t5/data-governance/getting-access-forbidden-error-to-aws-when-trying-to-follow-the/m-p/19063#M667</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please hit metastore list and storage credentials API or CLI to get the detail of metastore and Storage credentials and you can verify the config.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://api-docs.databricks.com/rest/latest/unity-catalog-api-specification-2-1.html" alt="https://api-docs.databricks.com/rest/latest/unity-catalog-api-specification-2-1.html" target="_blank"&gt;https://api-docs.databricks.com/rest/latest/unity-catalog-api-specification-2-1.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.databricks.com/dev-tools/cli/unity-catalog-cli.html#metastores" alt="https://docs.databricks.com/dev-tools/cli/unity-catalog-cli.html#metastores" target="_blank"&gt;https://docs.databricks.com/dev-tools/cli/unity-catalog-cli.html#metastores&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can reconfigure your metastore or update the existing credentials:&lt;/P&gt;&lt;P&gt;To update the metastore with a new storage credential, you can use the following CLI commands.&lt;/P&gt;&lt;P&gt;AWS:&amp;nbsp;&lt;A href="https://docs.databricks.com/dev-tools/cli/unity-catalog-cli.html#metastores" alt="https://docs.databricks.com/dev-tools/cli/unity-catalog-cli.html#metastores" target="_blank"&gt;https://docs.databricks.com/dev-tools/cli/unity-catalog-cli&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Azure:&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/azure/databricks/dev-tools/cli/unity-catalog-cli" alt="https://learn.microsoft.com/en-us/azure/databricks/dev-tools/cli/unity-catalog-cli" target="_blank"&gt;https://learn.microsoft.com/en-us/azure/databricks/dev-tools/cli/unity-catalog-cli&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;databricks --profile test-shard unity-catalog storage-credentials create&lt;/B&gt; \&lt;/P&gt;&lt;P&gt;--json '{"name": "test-role-cred", "aws_iam_role": {"role_arn": "arn:aws:iam:::role/us-east-1-extdev-managed-catalog-test-role"}}'&lt;/P&gt;&lt;P&gt;&lt;B&gt;databricks --profile test-shard unity-catalog metastores update&lt;/B&gt; \ --id bd5c8b05-xyzw-476a-8b4e-08320f9633d2 \ &lt;/P&gt;&lt;P&gt;--json '{"storage_root_credential_id":"3783164d-9887-4b1c-afc6-a0b06cf3f44c"}' &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once the metastore is updated, check the below configs with the highlighted parameters:&lt;/P&gt;&lt;P&gt;&lt;B&gt;Check the storage credentials config&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;databricks unity-catalog list-storage-credentials&lt;/B&gt;&lt;/P&gt;&lt;P&gt;The output should look like this:&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;"storage_credentials": [&lt;/P&gt;&lt;P&gt;&amp;nbsp;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;"id": "9e3e6c22-e765-4da7-xxxx-***",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;"name": "4d173c3e-ee91-4c2f-a890-xxxxxxx-data-access-config-16607430xxxx",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;"aws_iam_role": {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;"role_arn": "arn:aws:I am:::role/my-unity-role",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;"unity_catalog_iam_arn": "arn:aws:iam:::role/unity-catalog-prod-UCMasterRole-14S5ZJVKOWXYZ",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;"external_id": "949b8e6e-f557-4aba-xxxx-***"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;},&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;"owner": "kavya.parag+uc@databricks.com",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;"metastore_id": "4d173c3e-ee91-4c2f-xxxx-***",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;"created_at": 1660743064187,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;"created_by": "kp+uc@databricks.com",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;"updated_at": 1660743064187,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;"updated_by": "kp+uc@databricks.com",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;"&lt;B&gt;used_for_managed_storage&lt;/B&gt;": true&lt;/P&gt;&lt;P&gt;&amp;nbsp;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;]&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;Check the metastore config:&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;databricks unity-catalog list-metastores&lt;/B&gt;&lt;/P&gt;&lt;P&gt;The output should look like this:&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;"metastores": [&lt;/P&gt;&lt;P&gt;&amp;nbsp;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;"name": "kp-test",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;"storage_root": "s3://bucket",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;"&lt;B&gt;default_data_access_config_id&lt;/B&gt;": "9e3e6c22-e765-4da7-xxxx-***",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;"&lt;B&gt;storage_root_credential_id&lt;/B&gt;": "9e3e6c22-e765-4da7-xxxx-***",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;"delta_sharing_scope": "INTERNAL",&lt;/P&gt;&lt;P&gt;"owner": "kp+uc@databricks.com",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;"privilege_model_version": "0.1",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;"metastore_id": "4d173c3e-ee91-4c2f-a890-***",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;"created_at": 1660743063329,&lt;/P&gt;&lt;P&gt;"created_by": "kp+uc@databricks.com",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;"updated_at": 1660743064838,&lt;/P&gt;&lt;P&gt;"updated_by": "kp+uc@databricks.com",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;"cloud": "aws",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;"region": "us-east-1",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;"global_metastore_id": "aws:us-east-1:4d173c3e-ee91-4c2f-xxxx-***"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Dec 2022 20:15:32 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-governance/getting-access-forbidden-error-to-aws-when-trying-to-follow-the/m-p/19063#M667</guid>
      <dc:creator>Sivaprasad1</dc:creator>
      <dc:date>2022-12-02T20:15:32Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Access forbidden error to AWS when trying to follow the unity catalog quickstart notebook.</title>
      <link>https://community.databricks.com/t5/data-governance/getting-access-forbidden-error-to-aws-when-trying-to-follow-the/m-p/19064#M668</link>
      <description>&lt;P&gt;Thanks for your answer to the second part of my question, super helpful! Can you confirm the first part of my question as well please?&lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2022 06:52:47 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-governance/getting-access-forbidden-error-to-aws-when-trying-to-follow-the/m-p/19064#M668</guid>
      <dc:creator>190809</dc:creator>
      <dc:date>2022-12-05T06:52:47Z</dc:date>
    </item>
  </channel>
</rss>

