I have a Maven project which I'm developing in IntelliJ. When I build a .jar file from this project (an artifact which I need to debug my Spark jobs) there are these two files in the .jar file:
/META-INF/ECLIPSEF.SF
/META-INF/ECLIPSEF.RSA
What are these files and why they end up in my jar file? I am asking because they are preventing my Spark jobs from running.
Are you using the maven shade plugin? Those are jar signatures, which ensure that the jar has not been tampered with. If you're using the maven-shade-plugin, you need to strip them out because you are intentionally changing the jar:
<filter>
<artifact>*:*</artifact>
<excludes>
<exclude>META-INF/*.SF</exclude>
<exclude>META-INF/*.DSA</exclude>
<exclude>META-INF/*.RSA</exclude>
</excludes>
</filter>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With