cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to filter the Spark UI for a notebook

Dean_Lovelace
New Contributor III

When running spark under yarn each script has it's own self contained set of logs:-

image 

In databricks all I see if a list of jobs and stages that have been run on the cluster:-

image 

From a support perspective this is a nightmare.

How can notebooks logs be grouped together so it is possible to see the all the activities that notebook has performed?

3 REPLIES 3

Anonymous
Not applicable

@Dean Lovelace​ : I can think of one way, does it help solve?

In Databricks, each notebook has a unique identifier called a "run ID" that can be used to filter the Spark UI to show only the activities performed by that notebook. Here's how you can filter the Spark UI for a notebook in Databricks:

  1. Run the notebook in Databricks.
  2. Once the notebook has completed or while it's running, navigate to the "Clusters" tab in the Databricks workspace.
  3. Click on the "View spark UI" button next to the cluster that was used to run the notebook.
  4. In the Spark UI, click on the "Application ID" link near the top of the page.
  5. This will take you to the "Application Detail" page. Look for the "Run ID" field, and copy the value.
  6. Go back to the Spark UI homepage and click on the "Filters" dropdown menu near the top of the page.
  7. In the "Filters" menu, click on "Add Filter" and select "Tag".
  8. In the "Tag" field, enter the value of the "Run ID" that you copied earlier.
  9. Click on "Apply".

After applying the filter, the Spark UI will only show the activities performed by the notebook with the specified run ID. This can be helpful for troubleshooting or auditing purposes, as it allows you to easily track the activities of a particular notebook.

Steps 4-9 don't work for me. I don't see any "Application ID" link or any way of filtering in the spark UI.

I am using Databricks in Azure.

Anonymous
Not applicable

Hi @Dean Lovelace​ 

Thank you for posting your question in our community! We are happy to assist you.

To help us provide you with the most accurate information, could you please take a moment to review the responses and select the one that best answers your question?

This will also help other community members who may have similar questions in the future. Thank you for your participation and let us know if you need any further assistance! 

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