You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@tez.apache.org by "Hitesh Shah (JIRA)" <ji...@apache.org> on 2016/08/02 13:19:20 UTC
[jira] [Resolved] (TEZ-3392) Could not find or load main class
org.apache.tez.dag.app.DAGAppMaster
[ https://issues.apache.org/jira/browse/TEZ-3392?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hitesh Shah resolved TEZ-3392.
------------------------------
Resolution: Invalid
Please follow instructions at https://cwiki.apache.org/confluence/display/TEZ/Tez+Release+FAQ. The wrong tarball is being used on HDFS.
> Could not find or load main class org.apache.tez.dag.app.DAGAppMaster
> ---------------------------------------------------------------------
>
> Key: TEZ-3392
> URL: https://issues.apache.org/jira/browse/TEZ-3392
> Project: Apache Tez
> Issue Type: Bug
> Affects Versions: 0.8.4
> Environment: CentOS release 6.8 (Final) x64bit
> Hadoop 2.7.2
> apache tez 0.8.4
> Reporter: amethystic
>
> Running Tez examples but ResourceManager showed it failed due to:
> Could not find or load main class org.apache.tez.dag.app.DAGAppMaster
> Sounds like there is an already-prebuilt .tar.gz file(apache-tez-0.8.4-bin.tar.gz) staring 0.8.4, so I used this file directly instead of compiling by myself and put it onto HDFS path: /apps/tez
> My tez-site.xml is:
> <?xml version="1.0" encoding="UTF-8"?>
> <?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
> <configuration>
> <property>
> <name>tez.lib.uris</name>
> <value>hdfs://localhost:8500/apps/tez/apache-tez-0.8.4-bin.tar.gz</value>
> </property>
> </configuration>
> mapreduce.framework.name was also set to yarn-tez in mapreduce-site.xml.
> All env variables were set in hadoop-env.sh:
> export TEZ_JARS=/mnt/disk/huxi/tez
> export TEZ_CONF_DIR=/mnt/disk/huxi/hadoop/etc/hadoop
> export HADOOP_CLASSPATH=$HADOOP_CLASSPATH:/mnt/disk/huxi/tez/*:/mnt/disk/huxi/tez/lib/*:/mnt/disk/huxi/tez/conf/*
> When issuing command "bin/hadoop jar /mnt/disk/huxi/tez/tez-examples-0.8.4.jar orderedwordcount ./NOTICE.txt /out", RM showed the task was failed:
>
> Application application_1470107708886_0001 failed 2 times due to AM Container for appattempt_1470107708886_0001_000002 exited with exitCode: 1
> For more detailed output, check application tracking page:http://iZ25f2qedc7Z:8088/cluster/app/application_1470107708886_0001Then, click on links to logs of each attempt.
> Diagnostics: Exception from container-launch.
> Container id: container_1470107708886_0001_02_000001
> Exit code: 1
> Stack trace: ExitCodeException exitCode=1:
> at org.apache.hadoop.util.Shell.runCommand(Shell.java:545)
> at org.apache.hadoop.util.Shell.run(Shell.java:456)
> at org.apache.hadoop.util.Shell$ShellCommandExecutor.execute(Shell.java:722)
> at org.apache.hadoop.yarn.server.nodemanager.DefaultContainerExecutor.launchContainer(DefaultContainerExecutor.java:212)
> at org.apache.hadoop.yarn.server.nodemanager.containermanager.launcher.ContainerLaunch.call(ContainerLaunch.java:302)
> at org.apache.hadoop.yarn.server.nodemanager.containermanager.launcher.ContainerLaunch.call(ContainerLaunch.java:82)
> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> at java.lang.Thread.run(Thread.java:745)
> Container exited with a non-zero exit code 1
> Failing this attempt. Failing the application.
> After checking the log, stederr complained that :
> Error: Could not find or load main class org.apache.tez.dag.app.DAGAppMaster
> Weird enough, tez-dag-0.8.4.jar should be in the classpath. So please be advice.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)