简体   繁体   English

无法找到或加载主类org.apache.giraph.yarn.GiraphApplicationMaster

[英]Could not find or load main class org.apache.giraph.yarn.GiraphApplicationMaster

I am attempting ito get Giraph running on a YARN cluster, (Hadoop 2.5.2) but am I'm stuck at this error: 我正在尝试让Giraph在YARN群集(Hadoop 2.5.2)上运行,但是我陷入了这个错误:

Could not find or load main class org.apache.giraph.yarn.GiraphApplicationMaster

I've tried everything I can find in previous messages on this topic, to no avail. 我已经尝试过在此主题的以前的邮件中可以找到的所有内容,但均无济于事。 My command line is like this: 我的命令行是这样的:

hadoop jar /home/prhodes/giraph/giraph-examples/target/giraph-examples-1.2.0-SNAPSHOT-for-hadoop-2.5.2-jar-with-dependencies.jar org.apache.giraph.GiraphRunner org.apache.giraph.examples.SimpleShortestPathsComputation -vif org.apache.giraph.io.formats.JsonLongDoubleFloatDoubleVertexInputFormat -vip /user/prhodes/input/tiny_graph.txt -vof org.apache.giraph.io.formats.IdWithValueTextOutputFormat -op /user/prhodes/giraph_output/shortestpaths -w 4 -yj /home/prhodes/giraph/giraph-examples/target/giraph-examples-1.2.0-SNAPSHOT-for-hadoop-2.5.2-jar-with-dependencies.jar,/home/prhodes/giraph/giraph-core/target/giraph-1.2.0-SNAPSHOT-for-hadoop-2.5.2-jar-with-dependencies.jar

I've checked that those jars are in those locations on each node in the cluster. 我检查了这些jar是否位于集群中每个节点上的那些位置。 Also, I've verified that the jar file does contain the GiraphApplicationMaster.class. 另外,我已经验证了jar文件确实包含GiraphApplicationMaster.class。 And yet it still complains about not finding the GiraphApplicationMaster. 但是它仍然抱怨找不到GiraphApplicationMaster。

Any ideas what else might be causing the problem, or any workarounds? 有什么其他想法可能会导致问题,或者有任何解决方法? I thought about distributing the Giraph jars to each node and physically putting them on the Hadoop Classpath, but the Maven build builds fat jars by default, which would probably cause issues doing that. 我曾考虑过将Giraph jars分发到每个节点,然后将其物理放置在Hadoop Classpath上,但是Maven构建默认情况下会构建胖jar,这可能会引起问题。 Any other suggestions or ideas? 还有其他建议或想法吗?

I resolved this issue with commands: 我用命令解决了这个问题:

cp $GIRAPH_HOME/giraph-examples/target/giraph-examples-1.1.0-for-hadoop-2.6.0-jar-with-dependencies.jar $HADOOP_HOME/share/hadoop/yarn/lib/

cp $GIRAPH_HOME/giraph-examples/target/ $HADOOP_HOME/share/hadoop/yarn/lib/

then, run your job 然后,做你的工作

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 apache spark2.3.0以master作为纱线启动时,失败并出现错误无法找到或加载主类org.apache.spark.deploy.yarn.ApplicationMaster - apache spark2.3.0 when launched with master as yarn, fails with error Could not find or load main class org.apache.spark.deploy.yarn.ApplicationMaster Apache Livy:无法找到或加载主类 org.apache.livy.server.LivyServer - Apache Livy : Could not find or load main class org.apache.livy.server.LivyServer Pig错误:无法找到或加载主类org.apache.pig.Main - Pig Error: Could not find or load main class org.apache.pig.Main 错误:无法在 Java Spark 中找到或加载主类 org.apache.spark.launcher.Main - Error: Could not find or load main class org.apache.spark.launcher.Main in Java Spark apache ant 无法找到或加载主类 org.apache.tools.ant.launch.Launcher - apache ant Could not find or load main class org.apache.tools.ant.launch.Launcher Apache Storm-无法找到或加载主类org.apache.storm.starter.ExclamationTopology - Apache Storm - Could not find or load main class org.apache.storm.starter.ExclamationTopology 德比错误:无法找到或加载主 class org.apache.derby.drda.NetworkServerControl - Derby Error: Could not find or load main class org.apache.derby.drda.NetworkServerControl 错误:无法找到或加载主类 org.apache.maven.wrapper.MavenWrapperMain 和 ClassnotFound 异常 - Error: Could not find or load main class org.apache.maven.wrapper.MavenWrapperMain and ClassnotFound Exception 错误:找不到或加载主类org.apache.maven.wrapper.MavenWrapperMain - Error: Could not find or load main class org.apache.maven.wrapper.MavenWrapperMain 尝试运行derby时在Eclipse上“找不到或加载主类org.apache.derby.tools.ij” - “Could not find or load main class org.apache.derby.tools.ij” on Eclipse when trying to run derby
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM