Hadoop throwing java.lang.VerifyError after exporting jar file Hadoop throwing java.lang.VerifyError after exporting jar file hadoop hadoop

Hadoop throwing java.lang.VerifyError after exporting jar file


Figured this out. There was an old version of the jets3t jar that was in the hadoop lib dir

the hadoop command line script loops over all jars in the lib dir and physically adds them to the classpath on the final exec'ed command line command that it builds. This command line classpath of the 0.6.0 jar was overriding the good 0.8.0 jar that I was exporting in my jar file. Since the 0.6.0 version did not have the specified constructor for RestS3Service , the java.lang.VerifyError was getting thrown. By removing the 0.6.0 lib from hadoop, all was well.