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
When I am trying to invoke this function from a Jupyter cell
Helper.getTypeFromStringClassName("Person")
It throws java.lang.NoClassDefFoundError: Person (wrong name: Person )
Suppose I include the case class (Person) part of the jar file and refer to it using spark.jar.packages, It works fine. The Spark executor cannot resolve the class from the class loader.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I have a scenario; where I have configured a spark notebook with the dependent jar.
The included jar has a function to get class Type using scala reflection. For example, the Person case class:
case class Person(name: String)
When I am trying to invoke this function from a Jupyter cell
Helper.getTypeFromStringClassName("Person")
It throws java.lang.NoClassDefFoundError: Person (wrong name: Person )
Suppose I include the case class (Person) part of the jar file and refer to it using spark.jar.packages, It works fine. The Spark executor cannot resolve the class from the class loader.
Beta Was this translation helpful? Give feedback.
All reactions