Hi @LucaCanali , and thanks for this useful tool!
Problem description
When using spark-measure with Apache Spark 4.0.0 (Scala 2.13), the following error occurs at runtime when calling createStageMetricsDF:
java.lang.NoSuchMethodError: 'org.apache.spark.sql.SparkSession$implicits$ org.apache.spark.sql.SparkSession.implicits()'
This is due to the fact that the method SparkSession.implicits() has been removed or made inaccessible in Spark 4. As a result, StageMetrics.createStageMetricsDF throws a NoSuchMethodError when it tries to create a DataFrame using spark.implicits._.
📄 Stacktrace (abbreviated)
java.lang.NoSuchMethodError: 'org.apache.spark.sql.SparkSession$implicits$ org.apache.spark.sql.SparkSession.implicits()'
at ch.cern.sparkmeasure.StageMetrics.createStageMetricsDF(StageMetrics.scala:228)
✅ Environment
Spark version: 4.0.0
Scala version: 2.13.13
spark-measure: latest commit from main branch (built locally): 4ea725a
Request
Would it be possible to:
Add support for Spark 4.0.0 via a dedicated branch or version?
Thanks again for the tool, and happy to contribute a PR if it can help.
Hi @LucaCanali , and thanks for this useful tool!
Problem description
When using spark-measure with Apache Spark 4.0.0 (Scala 2.13), the following error occurs at runtime when calling createStageMetricsDF:
java.lang.NoSuchMethodError: 'org.apache.spark.sql.SparkSession$implicits$ org.apache.spark.sql.SparkSession.implicits()'This is due to the fact that the method SparkSession.implicits() has been removed or made inaccessible in Spark 4. As a result, StageMetrics.createStageMetricsDF throws a NoSuchMethodError when it tries to create a DataFrame using spark.implicits._.
📄 Stacktrace (abbreviated)
✅ Environment
Spark version: 4.0.0
Scala version: 2.13.13
spark-measure: latest commit from main branch (built locally): 4ea725a
Request
Would it be possible to:
Add support for Spark 4.0.0 via a dedicated branch or version?
Thanks again for the tool, and happy to contribute a PR if it can help.