hive执行jar包报错:Invalid signature file digest for Manifest main attributes

重新打包,排除包中的 *.SF *.DSA *.RSA 文件;

修改 jar包的pom文件后,重新打包即可;

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-shade-plugin</artifactId>
                <version>3.0.0</version>
                <configuration>
                    <filters>
                        <filter>
                            <artifact>*:*</artifact>
                            <!--重点:打包排除 *.SF *.DSA *.RSA  文件-->
                            <excludes>
                                <exclude>META-INF/*.SF</exclude>
                                <exclude>META-INF/*.DSA</exclude>
                                <exclude>META-INF/*.RSA</exclude>
                            </excludes>
                        </filter>
                    </filters>
                </configuration>
                <executions>
                    <execution>
                        <phase>package</phase>
                        <goals>
                            <goal>shade</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>

Guess you like

Origin blog.csdn.net/MDJ_D2T/article/details/119886430