spark程序运行时问题

spark  java程序写完后,执行 java -jar jar包name报如下错误:

Exception in thread "main" com.typesafe.config.ConfigException$Missing: No configuration setting found for key 'akka.remote.log-sent-messages'


或者报

Exception in thread "main" java.lang.SecurityException: Invalid signature file digest for Manifest main attributes


那是打包时的配置问题,请用shade插件打包,修改pom.xml打包再运行


org.apache.maven.plugins
maven-shade-plugin
2.2


package

shade




*:*

META-INF/*.SF
META-INF/*.DSA
META-INF/*.RSA




implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
com.a.b.Test

implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
reference.conf









你可能感兴趣的:(spark)