You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We use JDK 17 with Spark 3.4.1 and Scala 2.12.15 so our Java applications can run in the latest EMR versions. However, with the spark-excel_2.12:3.4.1_0.20.1 dependency included we consistently get the following runtime error in the EMR logs:
java.lang.ClassCastException: cannot assign instance of scala.collection.immutable.Map$Map2 to field org.apache.spark.scheduler.cluster.CoarseGrainedClusterMessages$AddWebUIFilter.filterParams of type scala.collection.immutable.Map in instance of org.apache.spark.scheduler.cluster.CoarseGrainedClusterMessages$AddWebUIFilter
We've tried all machinations to no avail, including getting support from AWS. Can you provide support for Scala 2.12.15 for backward compatibility with Spark 3.4.1 in the EMR?
Hi @nightscape: We tried excluding scala libraries and other dependency machinations, but it never solved the binary incompatibility problem. We're a Java shop with no Scala experience, so we could not figure out how to build the library. If you give us step-by-step instructions, we can try it. In the meantime, we migrated our code to fastexcel, a non-spark pure Java library. Thank you.
Is there an existing issue for this?
Current Behavior
Problem
The latest release of spark-excel_2.12:3.4.1_0.20.1 is incompatible with the latest releases of AWS EMR v6.13 and higher because they're built on Scala 2.12.15.
We use JDK 17 with Spark 3.4.1 and Scala 2.12.15 so our Java applications can run in the latest EMR versions. However, with the spark-excel_2.12:3.4.1_0.20.1 dependency included we consistently get the following runtime error in the EMR logs:
We've tried all machinations to no avail, including getting support from AWS. Can you provide support for Scala 2.12.15 for backward compatibility with Spark 3.4.1 in the EMR?
References:
Expected Behavior
We'd prefer backward compatibility with Scala 2.12.15 so we can continue using Spark Excel in the AWS EMR v6.13+.
Steps To Reproduce
Environment
Anything else?
No response
The text was updated successfully, but these errors were encountered: