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 22:07:31 UTC

[jira] Updated: (HADOOP-3868) Classes defined in tools dir cannot be executed without first created a jar

     [ 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.