You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mapreduce-issues@hadoop.apache.org by "Ravi Gummadi (Created) (JIRA)" <ji...@apache.org> on 2011/12/01 10:25:40 UTC
[jira] [Created] (MAPREDUCE-3492) mapreduce examples jar is not
built properly
mapreduce examples jar is not built properly
--------------------------------------------
Key: MAPREDUCE-3492
URL: https://issues.apache.org/jira/browse/MAPREDUCE-3492
Project: Hadoop Map/Reduce
Issue Type: Bug
Components: examples
Reporter: Ravi Gummadi
When I try to build examples jar using "ant -Dresolvers=internal examples" in trunk, the jar created in build/ directory is of very small size, may be empty jar. And trying to run wordcount job gives the error:
Exception in thread "main" java.lang.ClassNotFoundException: org.apache.hadoop.examples.ExampleDriver
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:247)
at org.apache.hadoop.util.RunJar.main(RunJar.java:193)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (MAPREDUCE-3492) mapreduce examples jar is not
built properly
Posted by "Ravi Gummadi (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MAPREDUCE-3492?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13161468#comment-13161468 ]
Ravi Gummadi commented on MAPREDUCE-3492:
-----------------------------------------
OK. Found the proper jar in hadoop-mapreduce-project/hadoop-mapreduce-examples/target/. Should the "examples" target be removed from hadoop-mapreduce-project/build.xml ?
> mapreduce examples jar is not built properly
> --------------------------------------------
>
> Key: MAPREDUCE-3492
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-3492
> Project: Hadoop Map/Reduce
> Issue Type: Bug
> Components: examples
> Reporter: Ravi Gummadi
>
> When I try to build examples jar using "ant -Dresolvers=internal examples" in trunk, the jar created in build/ directory is of very small size, may be empty jar. And trying to run wordcount job gives the error:
> Exception in thread "main" java.lang.ClassNotFoundException: org.apache.hadoop.examples.ExampleDriver
> at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
> at java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName(Class.java:247)
> at org.apache.hadoop.util.RunJar.main(RunJar.java:193)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (MAPREDUCE-3492) mapreduce examples jar is not
built properly
Posted by "Hitesh Shah (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MAPREDUCE-3492?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13160970#comment-13160970 ]
Hitesh Shah commented on MAPREDUCE-3492:
----------------------------------------
Wordcount should now be part of hadoop-mapreduce-project/hadoop=mapreduce-examples/ which is now part of the mavenized build.
> mapreduce examples jar is not built properly
> --------------------------------------------
>
> Key: MAPREDUCE-3492
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-3492
> Project: Hadoop Map/Reduce
> Issue Type: Bug
> Components: examples
> Reporter: Ravi Gummadi
>
> When I try to build examples jar using "ant -Dresolvers=internal examples" in trunk, the jar created in build/ directory is of very small size, may be empty jar. And trying to run wordcount job gives the error:
> Exception in thread "main" java.lang.ClassNotFoundException: org.apache.hadoop.examples.ExampleDriver
> at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
> at java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName(Class.java:247)
> at org.apache.hadoop.util.RunJar.main(RunJar.java:193)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira