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: 

Issue running notebook from another notebook in Job cluster

_paskal_1
Visitor

Hi,

I have situation where I can run my notebook without any issue when I use a 'normal' cluster. However, when I run the exact same notebook in a job cluster it fails.

It fails at the point where it runs the cell:
`%run ../utils/some_other_notebook`

And the error seems to be caused by the following line which runs before the above one isn't doing what I am expecting:

`sys.path.append(os.path.abspath('../utils'))`

Now I run the job with the same user as when I run it with my 'normal' cluster. Also when I run the workflow with my 'normal' cluster attached it works. I also have the same construction working in other workspaces for job clusters. 
So my question is what could be causing this behaviour in this specific workspace with the job cluster? What settings are there that I should check to see if there are any differences in the config?
 
0 REPLIES 0

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