You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Tsz Wo (Nicholas), SZE (JIRA)" <ji...@apache.org> on 2008/07/30 20:57:33 UTC
[jira] Created: (HADOOP-3868) Classes defined in tools dir cannot
be executed without first created a jar
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
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.
[jira] Updated: (HADOOP-3868) Classes defined in tools dir cannot
be executed without first created a jar
Posted by "Tsz Wo (Nicholas), SZE (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-3868?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tsz Wo (Nicholas), SZE updated HADOOP-3868:
-------------------------------------------
Attachment: 3868_20080730.patch
3868_20080730.patch: set TOOL_PATH if $HADOOP_HOME/build/tools exists
> 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
> Attachments: 3868_20080730.patch
>
>
> 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.
[jira] Commented: (HADOOP-3868) Classes defined in tools dir cannot
be executed without first created a jar
Posted by "Doug Cutting (JIRA)" <ji...@apache.org>.
[ 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.
[jira] Resolved: (HADOOP-3868) Classes defined in tools dir cannot
be executed without first created a jar
Posted by "Tsz Wo (Nicholas), SZE (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-3868?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tsz Wo (Nicholas), SZE resolved HADOOP-3868.
--------------------------------------------
Resolution: Won't Fix
Oops, I did not realize that it was done on purpose. Closing this as WON'T FIX.
> 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
> Attachments: 3868_20080730.patch
>
>
> 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.
[jira] Assigned: (HADOOP-3868) Classes defined in tools dir cannot
be executed without first created a jar
Posted by "Tsz Wo (Nicholas), SZE (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-3868?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tsz Wo (Nicholas), SZE reassigned HADOOP-3868:
----------------------------------------------
Assignee: Tsz Wo (Nicholas), SZE
> 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.