cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Community Platform 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

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

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