[
https://issues.apache.org/jira/browse/MAPREDUCE-852?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tsz Wo (Nicholas), SZE updated MAPREDUCE-852:
---------------------------------------------
Assignee: Tsz Wo (Nicholas), SZE
Release Note: Changed the target name from "tools-jar" to "tools" in
build.xml.
Hadoop Flags: [Incompatible change]
Status: Patch Available (was: Open)
Before the patch, there is a NoClassDefFoundError.
{noformat}
bash-3.2$ java -jar build/hadoop-mapred-tools-0.21.0-dev.jar
java.lang.NoClassDefFoundError: org/apache/hadoop/examples/ExampleDriver
Caused by: java.lang.ClassNotFoundException:
org.apache.hadoop.examples.ExampleDriver
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
Could not find the main class: org/apache/hadoop/examples/ExampleDriver.
Program will exit.
{noformat}
Tested "ant tools" locally with the patch.
> ExampleDriver is incorrectly set as a Main-Class in tools in build.xml
> ----------------------------------------------------------------------
>
> Key: MAPREDUCE-852
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-852
> Project: Hadoop Map/Reduce
> Issue Type: Bug
> Components: build
> Reporter: Tsz Wo (Nicholas), SZE
> Assignee: Tsz Wo (Nicholas), SZE
> Attachments: m852_20090812.patch
>
>
> In build.xml,
> {code}
> <target name="examples" depends="jar, compile-examples" description="Make
> the Hadoop examples jar.">
> ...
> <target name="tools-jar" depends="jar, compile-tools"
> description="Make the Hadoop tools jar.">
> <jar jarfile="${build.dir}/${tools.final.name}.jar"
> basedir="${build.tools}">
> <manifest>
> <attribute name="Main-Class"
> value="org/apache/hadoop/examples/ExampleDriver"/>
> </manifest>
> </jar>
> </target>
> {code}
> - ExampleDriver should not be a Main-Class of tools
> - Should we rename the target name from "tools-jar" to "tools", so that the
> name would be consistent with the "examples" target?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.