Exception in thread \"main\" java.lang.SecurityException: Invalid signature file d igest for Manifest main attributes
at sun.security.util
I was trying to create an uber jar with maven and ran in to this problem and I was able to solve the issue as follows.
Here is how I configured the shade
plugin to include twitter4j
to my uber jar.
org.apache.maven.plugins
maven-shade-plugin
2.4.2
package
shade
spark-streaming-twitter_2.10:spark-streaming-twitter_2.10
**
twitter4j-stream:twitter4j-stream
**
*:*
META-INF/*.SF
META-INF/*.DSA
META-INF/*.RSA
Hope this helps.