cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
cancel
Showing results for 
Search instead for 
Did you mean: 

Python custom Logging on Databricks

marksachin_k
New Contributor

I am planning to introduce a custom logging to the databricks workload. To achieve this I am using a python logging module. I am storing logs in driver memory "file:/tmp/" directory before I move those logs to blob storage. In my personal databricks account, I am able to list the files in "file:/tmp/" directory and can see my log file and the logs written on that file using dbutils.fs.head("path_to_file"). But when I try to implement the similar logic in client workspace, I am getting an exception.

"java.lang.SecurityException: User does not have permission SELECT on any file."

How to resolve this issue?

1 REPLY 1

Anonymous
Not applicable

Hi @MARKSACHIN K​ 

Great to meet you, and thanks for your question!

Let's see if your peers in the community have an answer to your question. Thanks.

Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.