cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Where is the cluster logs of the Databricks Jobs stored.

kjoth
Contributor II

I'm running a scheduled job on Job clusters. I didnt mention the log location for the cluster. Where can we get the stored logs location.

Yes, I can see the logs in the runs, but i need the logs location.

8 REPLIES 8

-werners-
Esteemed Contributor III

I do not know the default location of the logs.

But it is very easy to define where the logs should be shipped:

https://docs.microsoft.com/en-us/azure/databricks/clusters/configure#cluster-log-delivery

Like that you control the location.

Yes, I'm aware of the option of providing log location. Ran some jobs without configuring the log location. Need to know the default location, for exporting the logs.

kalyani1
New Contributor III

Hi @karthick Jโ€‹ Did you get this?

kalyani1
New Contributor III

@Kaniz Fatmaโ€‹ 

I am unable find where the logs were stored defaultly without giving any path in advanced options.Would Please help me with this?

kjoth
Contributor II

Hi @Sai Kalyani Pโ€‹ , Yes it helped. Thanks

kalyani1
New Contributor III

@karthick Jโ€‹ 

would you please help me to find out the location of the logs location?I was unable to find out that one

Hi @Sai Kalyani Pโ€‹ ,

In the databricks one of the cluster run this command to get the spark configs

spark.sparkContext.getConf().getAll() 

The above command will list all configs.

In this returned result, search for this config

 ('spark.databricks.eventLog.dir', 'eventlogs') This is the place where eventlogs are stored.

Alos check this property, where its by default disabled.

 ('spark.eventLog.enabled', 'false'),

Check these two files.

ls -ll /databricks/driver/logs/stdout

ls -ll /databricks/spark/logs/

By default these logs are not saved regularly.

We need to mention the cluster log location if we want it ti be stored reliably.

kalyani1
New Contributor III

@karthick Jโ€‹ 

Thank you!!

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