cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Community Platform Discussions
Connect with fellow community members to discuss general topics related to the Databricks platform, industry trends, and best practices. Share experiences, ask questions, and foster collaboration within the community.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Cannot %run notebook using relative path

DManowitz-BAH
New Contributor II

In the root of my workspace, I have the following folder structure set up:

/foo
   / ETL
   / setup
   / utilities

From a notebook in /foo/ETL or /foo/setup, if I try to %run a notebook in /foo/utilities by giving the relative path ../utilities/<x>, I get an error "Permission denied: Forbidden".  However, I am able to %run a notebook by giving the absolute path /foo/utilities/<x>.

If I clone this whole structure into my user folder, I also get the same error when trying to use the relative path to refer to my other notebook.

Does anyone have any idea what might be going on?

3 REPLIES 3

User16502773013
Contributor II

Hello @DManowitz-BAH ,

Hope you are doing great, I tried to replicate this behavior on 12.2 LTS runtime and didn't get any errors for the same folder/workspace structure..

Can you share the cluster configuration details so I can mimic exactly the same setup you have so I can replicate the issue and recommend a solution?

Regards

I am on AWS, running a cluster with Databricks runtime 10.4 LTS.

Hello @DManowitz-BAH I also tried in 10.4 LTS and the issue is not  replicatable (shown below) 

Is it possible scripts in utilities are referencing other files that you may not have access to?

Screenshot 2023-08-17 at 2.58.02 PM.pngScreenshot 2023-08-17 at 2.50.59 PM.png

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