RajeshRK
Contributor II

@Kaniz Fatma​ @John Lourdu​ @Vidula Khanna​ 

Hi Team,

I managed to download logs using the Databricks command line as below:

  1. Installed the Databricks command line on my Desktop (pip install databricks-cli)
  2. Configured the Databricks cluster URL and personal token. (databricks configure --token)
  3. Followed the below procedure to download the logs

1. Get the job run id using below command
# databricks runs list | grep -i running
 
2. Identify the cluster id using the run id
# databricks clusters list | grep <run id from the above command>
 
3. Copied the logs from Databricks cluster to my local desktop
# databricks fs cp -r <databricks log location/<cluster id got from the above command>  <location in my desktop>

Regards,

Rajesh.

View solution in original post