cancel
Showing results for 
Search instead for 
Did you mean: 
Get Started Discussions
Start your journey with Databricks by joining discussions on getting started guides, tutorials, and introductory topics. Connect with beginners and experts alike to kickstart your Databricks experience.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to collect a thread dump from Databricks Spark UI.

NandiniN
Databricks Employee
Databricks Employee

If you observe a hung job, thread dumps are crucial to determine the root cause. Hence, it would be a good idea to collect the thread dumps before cancelling the hung job.

Here are the Instructions to collect the Spark driver/executor thread dump: 

  1. ​Go to the cluster where the SQL/Job/Query is running and click on spark UI.
  2. Now click on the "Executors" tab in the Spark UI. Click on "Thread dump" against the Spark Driver/executors
  3. On this screen, you will see the list of active threads running.
  4. Click on Expand All (In latest versions you should see a Download button next to Expand all, it is a new feature). Right-click on the web page and save the thread dumps that you see on the screen as HTML files, or click on Download.
  5. To confirm that a thread is stuck, a thread dump has to be taken once in 1-2 minutes for 5-6 iterations.
1 REPLY 1

jose_gonzalez
Databricks Employee
Databricks Employee

Thank you for sharing @NandiniN

Join Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local community—sign up today to get started!

Sign Up Now