flink-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Maximilian Michels (JIRA)" <j...@apache.org>
Subject [jira] [Created] (FLINK-2607) Shade plugin copies signature files from original jar into fat jar
Date Wed, 02 Sep 2015 10:23:46 GMT
Maximilian Michels created FLINK-2607:

             Summary: Shade plugin copies signature files from original jar into fat jar
                 Key: FLINK-2607
                 URL: https://issues.apache.org/jira/browse/FLINK-2607
             Project: Flink
          Issue Type: Bug
          Components: Quickstarts
    Affects Versions: 0.9, 0.10
            Reporter: Maximilian Michels
            Assignee: Maximilian Michels
             Fix For: 0.10

The Quickstart project contains a Maven configuration that builds a fat jar using the Maven
Shade plugin. It copies the {{META-INF}} folder of the original jar into the fat jar as well.
That can lead to a {{SecurityException}} when submitting jobs to the cluster because the signature
file contained in the original jar is not suitable for the fat jar. 

 java.lang.SecurityException: Invalid signature file digest for Manifest main attributes

The solution is to change the configuration of the Shade plugin to ignore the signature files
in the {{META-INF}} folder when copying the dependencies to the fat jar. 

See also:


This message was sent by Atlassian JIRA

View raw message