cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Community Discussions
Connect with fellow community members to discuss general topics related to the Databricks platform, industry trends, and best practices. Share experiences, ask questions, and foster collaboration within the community.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

How to collect a thread dump from Databricks Spark UI.

NandiniN
Honored Contributor
Honored Contributor

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
Moderator
Moderator

Thank you for sharing @NandiniN

Join 100K+ Data Experts: Register Now & Grow with Us!

Excited to expand your horizons with us? Click here to Register and begin your journey to success!

Already a member? Login and join your local regional user group! If there isn’t one near you, fill out this form and we’ll create one for you to join!