cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

Issue with Could not initialize class $linec4a1686037264c21b0e58b369fab8f2d59.$read$

williamwjs
New Contributor II

Our job is written in Scala on DataBricks. It used to have the same problem, but was managed to work with putting all case classes in a separate cell. However, lately it started to fail again due to the same error:

Could not initialize class $linec4a1686037264c21b0e58b369fab8f2d59.$read$
Caused by: NoClassDefFoundError: Could not initialize class $linec4a1686037264c21b0e58b369fab8f2d59.$read$

May I ask if you could help suggest a solution to this?
Thank you!

2 REPLIES 2

williamwjs
New Contributor II

Hi @Kaniz_Fatma  , these do not help for my case.

Since the class that is not found is the `case class` I created in code, so it is not an issue with the dependencies. And adding `extends Serializable` does not help either.

Could you help suggest again?
Thank you!

williamwjs
New Contributor II

Hi @Kaniz_Fatma , may I ask if there's any updates to this issue? Thank you!

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group