NoClassDefFoundError in Spark Submit -


i working on spark application . using third party jar. added in sbt file. compilation successful

> librarydependencies += "org.springframework.security" % > "spring-security-web" % "3.0.7.release 

but when submit spark job

spark-submit --master yarn-client --class myclass target/scala-2.10/my-app.jar 

it fails following error:

exception in thread "main" org.apache.spark.sparkexception: job aborted due  stage failure: task 0 in stage 48.0 failed 1 times, recent failure: lost task 0.0 in stage 48.0 (tid 3216, localhost):  `java.lang.noclassdeffounderror:` org/springframework/security/web/util/ipaddressmatcher 

i tried explicitly passing jar in spark-submit jar

spark-submit --master yarn-client --jars third-party-jars/spring-security-web-3.0.7.release.jar --class myclass target/scala-2.10/my-app.jar 

but fails following error:

java.lang.noclassdeffounderror: org/springframework/util/stringutils     @ org.springframework.security.web.util.ipaddressmatcher.<init>(ipaddressmatcher.java:33) 

its similar error on class.

any suggestion on how resolve this?

thanks

also can use intelijide. not need adjust always. can download here ubuntu. https://apps.ubuntu.com/cat/applications/intellij-idea-ce/


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -