我在windows上打的jar,放在linux上运行时报错;
Exception in thread “main” java.lang.SecurityException: Invalid signature file digest for Manifest main attributes
at sun.security.util.SignatureFileVerifier.processImpl(SignatureFileVerifier.java:240)
at sun.security.util.SignatureFileVerifier.process(SignatureFileVerifier.java:193)
at java.util.jar.JarVerifier.processEntry(JarVerifier.java:307)
at java.util.jar.JarVerifier.update(JarVerifier.java:218)
at java.util.jar.JarFile.initializeVerifier(JarFile.java:345)
…
org.apache.spark.deploy.SparkSubmit.org.org.orgapachesparksparksparkdeploySparkSubmitSparkSubmitSparkSubmitrunMain(SparkSubmit.scala:695)atorg.apache.spark.deploy.SparkSubmitrunMain(SparkSubmit.scala:695)
at org.apache.spark.deploy.SparkSubmitrunMain(SparkSubmit.scala:695)atorg.apache.spark.deploy.SparkSubmit.doRunMain1(SparkSubmit.scala:187)atorg.apache.spark.deploy.SparkSubmit1(SparkSubmit.scala:187)
at org.apache.spark.deploy.SparkSubmit1(SparkSubmit.scala:187)atorg.apache.spark.deploy.SparkSubmit.submit(SparkSubmit.scala:212)
at org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:126)
at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)
在服务器上运行的命令为:
spark-submit \
–class com.imooc.spark.SQLContextApp
–master local[2]
/home/hadoop/lib/ImoocSparkSQLProject.jar
file:///home/hadoop/app/spark-2.1.0-bin-2.6.0-cdh5.7.0/examples/src/main/resources/people.json
麻烦老师看下怎么解决?