Hi Spark developers,
When building version 0.7.2 using sbt, we end up with an invalid signature in the core jar file.
[spark-0.7.2]$ jarsigner -verify core/target/spark-core-assembly-0.7.2.jar
jarsigner: java.lang.SecurityException: Invalid signature file digest for Manifest main attributes
The pre-built version, however, is unsigned. We did not face this problem with previous versions of Spark:
[spark-0.7.0]$ jarsigner -verify core/target/spark-core-assembly-0.7.0.jar
jar is unsigned. (signatures missing or not parsable)
[spark-0.6.2]$ jarsigner -verify core/target/spark-core-assembly-0.6.2.jar
jar is unsigned. (signatures missing or not parsable)
I suspect it has to do with the following messages when assembling the latest version.
[info] SHA-1: WrappedArray(-9, 25, -79, 97, 122, -57, 119, 43, -46, 77, 37, -12, -99, 84, -125, 82, -44, -122, -68, 56)
[info] Packaging /opt/spark-0.7.2/core/target/spark-core-assembly-0.7.2.jar ...
[info] SHA-1: WrappedArray(-26, -21, 68, -66, 56, -40, 62, -84, 79, 22, 1, -94, -100, -7, 4, -16, 53, -21, 94, 102)
[info] Packaging /opt/spark-0.7.2/streaming/target/spark-streaming-assembly-0.7.2.jar ...
[info] Done packaging.
[info] Done packaging.
[success] Total time: 32 s
Any idea how to prevent the signing process or to fix it?
Thanks,
--Hossein
inf/.*\\.sf$") => MergeStrategy.discard'
jar xvf your-jar-assembly-0.1.jar
rm -rf your-jar-assembly-0.1.jar
rm -rf META-INF/* # Substitute the correct command to delete the signature files; I forget their file extension
java cvf your-jar-assembly-0.1.jar *