Spark2-提交:java.lang.IllegalStateException:不支持的MOJO算法:

时间:2018-12-17 08:28:41

标签: spark-submit

我已经使用以下命令通过SPark2-Submit编译并运行了程序:

spark2-submit --class com.mycompany.project1 --master yarn --deploy-mode client --files "jaas.conf,user1.keytab" --driver-java-options "-Djava.security.auth.login.config=jaas.conf" --conf "spark.executor.extraJavaOptions=-Djava.security.auth.login.config=jaas.conf" test.jar &> logs/test.log

但是随后出现以下错误消息:

Exception in thread "main" java.lang.IllegalStateException: Unsupported MOJO algorithm: myProject
        at hex.genmodel.ModelMojoFactory.getMojoReader(ModelMojoFactory.java:78)
        at hex.genmodel.ModelMojoReader.readFrom(ModelMojoReader.java:30)
        at hex.genmodel.MojoModel.load(MojoModel.java:35)
        at com.mycompany.project1$.main(project1.scala:127)
        at com.mycompany.project1.main(project1.scala)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.apache.spark.deploy.JavaMainApplication.start(SparkApplication.scala:52)
        at org.apache.spark.deploy.SparkSubmit$.org$apache$spark$deploy$SparkSubmit$$runMain(SparkSubmit.scala:892)
        at org.apache.spark.deploy.SparkSubmit$.doRunMain$1(SparkSubmit.scala:197)
        at org.apache.spark.deploy.SparkSubmit$.submit(SparkSubmit.scala:227)
        at org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:136)
        at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)

任何人都可以帮助解释“不受支持的MOJO算法”是什么意思?另一个同事设法进行编译,他可以毫无问题地进行编译和运行。我可能做错了什么?

0 个答案:

没有答案