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 Intercept Spark Listener with Pyspark ?

William_Scardua
Valued Contributor

hi guys,

โ€‹

It`s possible to intercept Spark Listener with Pyspark to collect indicator like shuffle, skew ratio, etc ?

1 ACCEPTED SOLUTION

Accepted Solutions

-werners-
Esteemed Contributor III

interesting question.

I know that you can use the SparkListener to collect info, f.e. here.

Mind that the class is written in Scala, so my first thought was that it is not possible in python/pyspark.

But SO says it is possible, but with a lot of overhead tbh.

So far from optimal, Iยดd try to use scala instead.

View solution in original post

2 REPLIES 2

Anonymous
Not applicable

Hi again! Thank you for your new question! As usual, we'll let your peers have a chance to answer first. Thanks for your patience!

-werners-
Esteemed Contributor III

interesting question.

I know that you can use the SparkListener to collect info, f.e. here.

Mind that the class is written in Scala, so my first thought was that it is not possible in python/pyspark.

But SO says it is possible, but with a lot of overhead tbh.

So far from optimal, Iยดd try to use scala instead.

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