cancel
Showing results for 
Search instead for 
Did you mean: 
Administration & Architecture
Explore discussions on Databricks administration, deployment strategies, and architectural best practices. Connect with administrators and architects to optimize your Databricks environment for performance, scalability, and security.
cancel
Showing results for 
Search instead for 
Did you mean: 

Error "Integrating Apache Spark with Databricks Unity Catalog Assets via Open APIs" on Azure

charl-p-botha
New Contributor III

Great blog post: https://community.databricks.com/t5/technical-blog/integrating-apache-spark-with-databricks-unity-ca...

I have attempted to reproduce this with Azure Databricks, and ADLS gen2 as the storage backend.

Although I'm able to interact with unity catalog (successful "use schema" and then "select(current_schema()") and so on, when I try to append rows to a newly created managed table (as in the example above), I get the error below.

It looks like the temporary credential supplied by UC is failing. Any ideas what could be wrong here?

java.nio.file.AccessDeniedException: Operation failed: "This request is not authorized to perform this operation using this permission.", 403, PUT, https://storageaccout-xyz.dfs.core.windows.net/some/dir/__unitycatalog/..."

Any ideas what I'm doing wrong? cc @dkushari 

P.S. it looks like the TM in the title of your blog post is preventing anyone from commenting there.

P.P.S. this forum software is extremely painful. It won't accept the post without a label, but it makes it incredibly difficult to select any labels.

3 REPLIES 3

dkushari
Databricks Employee
Databricks Employee

Hi @charl-p-botha - Thanks for your post. Please see if you have all the right UC permissions to modify the table. Can you run the same command from a DB workspace and see if it passes? Please make sure all of these are satisfied. I will check on the P.S and P.P.S with the team.

dkushari
Databricks Employee
Databricks Employee

Hi @charl-p-botha - Can you please ensure that you are logged into the Databricks community portal to put the comments for the blog?

Hi there @dkushari thank you very much for getting back to me!

I have just confirmed that I am able to run exactly the same insert command in a databricks notebook. I am using a PAT token for that user account in my apache spark experiments.

Is there anything else I can try?

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group