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: 

Issue running notebook from another notebook in Job cluster

_paskal_1
New Contributor

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?
 
1 REPLY 1

_paskal_
New Contributor III

Not sure what went wrong but after pulling the sources (notebooks) again from GIT it now works both for my 'normal' cluster and the 'job' cluster.
Case closed for me...

Join Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local community—sign up today to get started!

Sign Up Now