cancel
Showing results for 
Search instead for 
Did you mean: 
Databricks Free Trial Help
Engage in discussions about the Databricks Free Trial within the Databricks Community. Share insights, tips, and best practices for getting started, troubleshooting issues, and maximizing the value of your trial experience to explore Databricks' capabilities effectively.
cancel
Showing results for 
Search instead for 
Did you mean: 

Notebook Paths Errors in Community Edition

mban-mondo
New Contributor II

I have the following Notebook in Databricks UI:
 

dbutils.entry_point.getDbutils().notebook().getContext().toJson()
notebook_path = dbutils.notebook.entry_point.getDbutils().notebook().getContext().notebookPath().get()
print(f"Current notebook path: {notebook_path}")
#Now I try to list notebook files
%ls /Users/mar@email.com/path_test
%ls /Users/mar@email.com
/

I get this answer:
Current noteb
ook path: /Users/mar@email.com/path_test
ls: cannot access '/Users/mar@email.com/': No such file or directory
ls: cannot access '/Users/mar@email.com/path_test': No such file or directory
-------------

Mondo Technologies GmbH
6300 Zug, Switzerland
1 ACCEPTED SOLUTION

Accepted Solutions

szymon_dybczak
Contributor III

Hi @mban-mondo ,

I think this is related to permissions issue. The same code will work if you create your own workspace. Since databricks community it's not your own instace, they probably had to disable some "features".

View solution in original post

2 REPLIES 2

szymon_dybczak
Contributor III

Hi @mban-mondo ,

I think this is related to permissions issue. The same code will work if you create your own workspace. Since databricks community it's not your own instace, they probably had to disable some "features".

mban-mondo
New Contributor II

Many thanks. It would be helpful if the error message said 'No access has been granted to this resource' instead of 'Resource not found.    🙂

-------------

Mondo Technologies GmbH
6300 Zug, Switzerland

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