[
https://issues.apache.org/jira/browse/HADOOP-3868?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12618475#action_12618475
]
Doug Cutting commented on HADOOP-3868:
--------------------------------------
Isn't that by design? These used to not be separately updateable from the
cluster, but that was changed. This is a feature, not a bug, no?
> Classes defined in tools dir cannot be executed without first created a jar
> ---------------------------------------------------------------------------
>
> Key: HADOOP-3868
> URL: https://issues.apache.org/jira/browse/HADOOP-3868
> Project: Hadoop Core
> Issue Type: Bug
> Components: tools/distcp, tools/harchive
> Reporter: Tsz Wo (Nicholas), SZE
> Assignee: Tsz Wo (Nicholas), SZE
>
> Without creating hadoop-*-tools.jar, we cannot run tools like distcp. For
> example,
> {noformat}
> bash-3.2$ ./bin/hadoop distcp
> java.lang.NoClassDefFoundError: org/apache/hadoop/tools/DistCp
> Caused by: java.lang.ClassNotFoundException: org.apache.hadoop.tools.DistCp
> at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
> Could not find the main class: org.apache.hadoop.tools.DistCp. Program will
> exit.
> {noformat}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.