首页 > 其他 > 详细

spark程序运行时问题

时间:2014-02-11 19:13:53      阅读:669      评论:0      收藏:0      [点我收藏+]

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打包再运行

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>2.2</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<filters>
<filter>
<artifact>*:*</artifact>
<excludes>
<exclude>META-INF/*.SF</exclude>
<exclude>META-INF/*.DSA</exclude>
<exclude>META-INF/*.RSA</exclude>
</excludes>
</filter>
</filters>
<transformers>
<transformer
implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<mainClass>com.a.b.Test</mainClass>
</transformer>
<transformer
implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
<resource>reference.conf</resource>
</transformer>
</transformers>
</configuration>
</execution>
</executions>
</plugin>




spark程序运行时问题

原文:http://blog.csdn.net/liuzhoulong/article/details/19073351

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!