Κοινή χρήση μέσω


Identifying an expensive read in Spark’s DAG

Getting to the DAG

Assuming you’re looking at an expensive job, first we need the ID of the stage that’s doing the read. Here we can see the Stage ID is 194:

Stage ID

Now we need to get to the SQL DAG. Scroll up to the top of the job’s page and click on the Associated SQL Query:

SQL ID

You should now see the DAG. If not, scroll around a bit and you should see it:

SQL DAG

In some cases, you can follow the DAG and see where the data is coming from. In other cases, look for the Stage ID you noted:

SQL Stage in DAG

Then you need to look for the “Scan” node. In this case it’s pretty simple to tell that we’re reading a table named transactions:

Scan in DAG

In some cases you may need to click on or roll over the node to get the location of the data you’re reading.