-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Questions regarding scala.ScalaReflectionException #194
Comments
Hi! I don't think an explicit dependency on the "core" module is needed as "kotlin-spark-api" already provides it as an "api" dependency. Could you try it without? Also, currently, we're at version 1.2.3. Just to be safe, could you upgrade? |
Hi @Jolanrensen, Thanks for you quick response! I have tried to update Can we know where this class is defined? I cannot find it in any of the dependency package. Also, when you mentioned Thanks! |
The specific class that is missing for you is in the core module. But it should be included in your build nonetheless, so I think it's something specific to Amazon's version of Spark that's causing the issue. Do you have an overview of your other dependencies exactly? Or is that hidden by AWS? Otherwise I could try and reproduce it. A (module) dependency can, among others, consist of "implementation" and "api". Implementation will include the dependency only to this package. Api will do that too but also expose all the methods of the dependency to users of this package, essentially forwarding them. This means that you should have access to the KotlinReflection class from the core module if you just have kotlin-spark-api as a dependency. https://docs.gradle.org/current/userguide/java_library_plugin.html#sec:java_library_separation |
Hi @Jolanrensen, After talking with AWS EMR team, we found out that it is an issue for their latest release EMR 6.9.0 version. There are some issues for class loader compatibility. After we down grade to EMR 6.8.0 version, this got resolved. Thanks so much for your help! |
@RuizhuYang We're facing similar |
We're building spark application on AWS EMR service, and seeing error when running the application:
I can confirm that that runtime uses Spark 3.3.0, Scala 2.12, and we use the matching version of koltin-spark-api
org.jetbrains.kotlinx.spark:kotlin-spark-api_3.3.0_2.12:1.2.1
andorg.jetbrains.kotlinx.spark:core-3.3.0_2.12:1.2.1
This seems like an issue of missing dependency. Any thoughts on which dependency we should check?
Thanks!
The text was updated successfully, but these errors were encountered: