09-12-2022 04:56 AM
Hi,
I would want to setup the cluster logging (to capture eventlogs to /dbfs/cluster-logs dir) in my cluster pool configuration? is it possible?
If I create cluster manually, I could able to setup the cluster logging as mentioned here: https://docs.microsoft.com/en-us/azure/databricks/clusters/configure#cluster-log-delivery
But I am using instance pool to create cluster automatically and run the workload, in that case I was not able to setup the logging and capture the eventlogs. Any help here is highly appreciated. Thanks in advance!!
Thanks,
Stephanraj
09-12-2022 05:27 AM
If you are using API, you can set the logging using the below piece of information in your json body.
https://docs.microsoft.com/en-us/azure/databricks/dev-tools/api/latest/examples#cluster-log-example
"cluster_log_conf": {
"dbfs": {
"destination": "dbfs:/cluster-logs"
}
},
09-12-2022 05:20 AM
Hi @Stephanraj C instance pool is to reduce cluster start and auto-scaling times for a cluster. Are you using any API to create clusters? If so could you please share the API request?
09-12-2022 05:27 AM
If you are using API, you can set the logging using the below piece of information in your json body.
https://docs.microsoft.com/en-us/azure/databricks/dev-tools/api/latest/examples#cluster-log-example
"cluster_log_conf": {
"dbfs": {
"destination": "dbfs:/cluster-logs"
}
},
09-12-2022 05:52 AM
Hi @Prabakar Ammeappin , Thank you so much for your input. Yes it worked well!!
09-12-2022 06:06 AM
Hi @Stephanraj C it's good to know that it worked. Please mark the best answer so this question can be closed and will help other members.
09-12-2022 06:10 AM
Hi @Prabakar Ammeappin Thanks. The logs are getting stored in folder with the spark-context-id, is it possible to save the logs with some specific tag names.
09-12-2022 06:22 AM
Hi @Stephanraj C I am not sure if that would be possible. Also, I haven't seen such configurations.
09-12-2022 06:35 AM
Hi @Prabakar Ammeappin Okay, I would write some custom script for that. Once again thanks for your support!!
Passionate about hosting events and connecting people? Help us grow a vibrant local community—sign up today to get started!
Sign Up Now