Job is fails with java.lang.NoClassDefFoundError: Could not initialize class error

Saty
New Contributor

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.