[ 
https://issues.apache.org/jira/browse/TEZ-3553?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Hitesh Shah resolved TEZ-3553.
------------------------------
    Resolution: Invalid

Please take a look at http://tez.apache.org/install.html. 

Instead of adding each sub-dir of tez-src into the classpath, I would suggest 
compiling tez and then using the tarballs created in tez-dist/target to update 
the classpath. 

For usage questions such as this, it is better to ask on the user mailing list. 
If the mailing list discussion results into a bug being discovered, then a bug 
should be filed. 

> NoClassDefFoundError in TexConfiguration
> ----------------------------------------
>
>                 Key: TEZ-3553
>                 URL: https://issues.apache.org/jira/browse/TEZ-3553
>             Project: Apache Tez
>          Issue Type: Bug
>    Affects Versions: 0.8.4
>         Environment: Ubuntu. Hadoop 2.7.2. Tez 0.8.4. 
>            Reporter: Shengjie Luo
>
> We deploy Tez 0.8.4 on Hadoop 2.7.2. Now we do not use Yarn in our work and 
> do a test about Tez. The installation of Tez is successful and report no 
> error. However, when I run the tex-example.jar, we find a fatal error that 
> the TexConfiguration cannot be found.
> The error report is here
> ```
> # hadoop jar ./tez-examples/target/tez-examples-0.8.4.jar orderedwordcount 
> input output                        ls: cannot access 
> /root/tez/apache-tez-0.8.4-src/lib: No such file or directory
> java.lang.NoClassDefFoundError: org/apache/tez/dag/api/TezConfiguration
>         at java.lang.Class.getDeclaredMethods0(Native Method)
>         at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
>         at java.lang.Class.privateGetMethodRecursive(Class.java:3048)
>         at java.lang.Class.getMethod0(Class.java:3018)
>         at java.lang.Class.getMethod(Class.java:1784)
>         at 
> org.apache.hadoop.util.ProgramDriver$ProgramDescription.<init>(ProgramDriver.java:59)
>         at 
> org.apache.hadoop.util.ProgramDriver.addClass(ProgramDriver.java:103)
>         at org.apache.tez.examples.ExampleDriver.main(ExampleDriver.java:47)
>         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.hadoop.util.RunJar.run(RunJar.java:221)
>         at org.apache.hadoop.util.RunJar.main(RunJar.java:136)
> Caused by: java.lang.ClassNotFoundException: 
> org.apache.tez.dag.api.TezConfiguration
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
>         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
>         ... 14 more
> ```
> The `hadoop_classpath` is 
> ```
> HADOOP_CLASSPATH=/root/tez/apache-tez-0.8.4-src/conf:/root/tez/apache-tez-0.8.4-src/*:/root/tez/apache-tez-0.8.4-src/lib/*:/root/tez/apache-tez-0.8.4-src/tez-examples/target/*:/root/tez/apache-tez-0.8.4-src:/root/tez/apache-tez-0.8.4-src/tez-mapreduce/target/test-classes/org/apache/tez/mapreduce/lib:/root/tez/apache-tez-0.8.4-src/tez-mapreduce/target/classes/org/apache/tez/mapreduce/lib:/root/tez/apache-tez-0.8.4-src/tez-mapreduce/src/test/java/org/apache/tez/mapreduce/lib:/root/tez/apache-tez-0.8.4-src/tez-mapreduce/src/main/java/org/apache/tez/mapreduce/lib
> ```
> The tez configure file is
> ```
> ~/tez/apache-tez-0.8.4-src/conf
> <?xml version="1.0" encoding="UTF-8"?>
> <?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
> <configuration>
>         <property>
>                 <name>tez.version</name>
>                 <value>tez-0.8.4</value>
>         </property>
>         <property>
>                 <name>tez.lib.uris</name>
>                 
> <value>${fs.default.name}/apps/tez-0.8.4/tez-0.8.4.tar.gz</value>
>         </property>
> </configuration>
> ```
> No specific idea in this problem and wait for solution from the team.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to