Skip to content

Instantly share code, notes, and snippets.

@hkhamm
Last active March 9, 2025 20:42
Show Gist options
  • Select an option

  • Save hkhamm/88923412992d284580ea to your computer and use it in GitHub Desktop.

Select an option

Save hkhamm/88923412992d284580ea to your computer and use it in GitHub Desktop.
Solving a Spark Invalid signature file digest for Manifest main attributes error

##Solving a Spark error: Invalid signature file digest for Manifest main attributes

When using spark-submit to run a jar, you may encounter this error:

Invalid signature file digest for Manifest main attributes

The error occurs when one of the included libraries in the jar's META-INF directory has a bad signature.

Solve the error with this command:

zip -d <jar file name>.jar META-INF/*.RSA META-INF/*.DSA META-INF/*.SF
@guiyang882
Copy link
Copy Markdown

thanks a lot ! You give me hope !

@NuthanReddy
Copy link
Copy Markdown

Thanks man. It worked!!

@luncongzhang
Copy link
Copy Markdown

good

@yuj
Copy link
Copy Markdown

yuj commented Dec 14, 2016

How would you prevent them from being generated in the first place?

@wumengyangok
Copy link
Copy Markdown

Thanks! It helped a lot!

@dhimanabhinav87
Copy link
Copy Markdown

It works like a charm!!

@cliu0601
Copy link
Copy Markdown

cliu0601 commented May 1, 2017

Super!

@andreatbonanno
Copy link
Copy Markdown

That works great, thanks!

@wbw1006
Copy link
Copy Markdown

wbw1006 commented Jun 24, 2017

Good!

@Aparee20
Copy link
Copy Markdown

great ! it works !

@MorAlto
Copy link
Copy Markdown

MorAlto commented Aug 31, 2017

Thank you !!!!!!!!!!!!!!!!!!!!!!!!!

@PanzaSancho
Copy link
Copy Markdown

Thankyou!
I am building the jar using IntelliJ IDEA (Build->Build Artifacts)...Then I manually delete the files like you suggested above. Can I do this thing in the IDE itself?

@lpstart
Copy link
Copy Markdown

lpstart commented Oct 27, 2017

Thank you!!!!!
It works!!!

@krishna209
Copy link
Copy Markdown

wow it saved my time

@shantihp
Copy link
Copy Markdown

shantihp commented Jan 7, 2018

You are a HERO man!!!

@kmkaran
Copy link
Copy Markdown

kmkaran commented Jun 20, 2018

Thank you

@jsharrett
Copy link
Copy Markdown

I've been looking for this for days. Thanks!

@DFGontlyull
Copy link
Copy Markdown

wow.. thank you!

@yaswanth009
Copy link
Copy Markdown

How can I delete from from Intellij itself instead of doing zip delete from Linux

@jpv
Copy link
Copy Markdown

jpv commented Feb 23, 2020

still a hero in 2020 ! Thanks..

@skyleaworlder
Copy link
Copy Markdown

still a hero in 2022. lol.

@AndnixSH
Copy link
Copy Markdown

is there a way to do this within IntelliJ IDE?

@pcardinal
Copy link
Copy Markdown

Merci...😁😁😁

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment