Replies: 1 comment
-
this is the right way to go, we are trying to make kyuubi-events a common extension for such a purpose |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, all
We're trying to get some event from spark. So I first try to use
SparkListenerSQLExecutionStart
andSparkListenerSQLExecutionEnd
, but some queries are hitting twice; first atresult = spark.sql(statement)
and second atresult.collect()
. Later I noticed this is absolutely normal because of spark's lazy execution behavior.Now we're trying to get event from Kyuubi's
SparkOperationEvent
, which is more reliable, but we cannot findSparkOperationEvent
class (NoClassDefFound) from our SparkListener implementation as normal. I think there're some kind of class loader isolation between Spark app(e.g. kyuubi-spark-sql-engine) jar and Spark's extra lib(e.g. our listener) jars. If I make symlink of the kyuubi-spark-sql-engine.jar to spark/jars directory, our listener is running as designed.Am I right? if so, separate simple jar which contains SparkOperationEvent is very helpful for making kyuubi extensions easy and light.
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions