03-27-2023 12:50 AM
hi,
It is scala code where we are connecting Redis to store (sparkcontext.toRedisKV) and i am also using scala udf . ihave excuted the same code in notebook without scala object and it works fine but everytime it fails when i am using same code in jar and excute it through job with java.lang.NoClassDefFoundError: Could not initialize class error.
03-27-2023 04:57 AM
Please share code also
04-01-2023 10:35 PM
@Satish Kumbhar :
The java.lang.NoClassDefFoundError error typically occurs when a class that was present during compilation is not available at runtime.
Here are some possible solutions to try:
Hopefully one of these solutions will help you resolve the issue.
04-03-2023 11:39 PM
Hi @Satish Kumbhar
Hope all is well! Just wanted to check in if you were able to resolve your issue and would you be happy to share the solution or mark an answer as best? Else please let us know if you need more help.
We'd love to hear from you.
Thanks!
Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections.
Click here to register and join today!
Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.