cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

dbutils.notebook.run raises HTTP 401 Unauthorized Error

Markus
New Contributor II

Hello,

since a while I use dbutils.notebook.run for multiple calling of additional notebooks and passing parameters to them. So far I could use the function without any difficulties - also today.

But since a few hours now I get the following error message when calling the notebook:

com.databricks.WorkflowException: com.databricks.common.client.UnexpectedHttpError: HTTP request failed with status: HTTP/1.1 401 Unauthorized

The call (even this simplified test call generates the error):

test = dbutils.notebook.run("./test2", timeout_seconds = 300 )

Does anyone know how this error occurs and how I can fix it?

I tried it on different clusters, terminated/restarted the clusters and have still the same problem. Could an authorization/token have expired between the last successful run and the error?

Best regards

Markus

2 REPLIES 2

Markus
New Contributor II

Hello Community,

the issue occurred due to a changed central configuration.

Recommendation by Databricks: "Admin Protection: New feature and security recommendations for No Isolation Shared clusters"

Here is the link to the current restrictions: Enable admin protection for โ€œNo isolation sharedโ€ clusters on your account | Databricks on Google Cl...

Best regards

Markus

Debayan
Databricks Employee
Databricks Employee

Hi @Markus F.โ€‹ , Could you please paste the whole error snippet here? You could open a databricks support case too with the whole error code.

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