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打包再运行
implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">