FAQ
Distcp not working due to NoClassDefFoundError: org/apache/hadoop/tools/DistCp
------------------------------------------------------------------------------

Key: HDFS-2370
URL: https://issues.apache.org/jira/browse/HDFS-2370
Project: Hadoop HDFS
Issue Type: Bug
Components: tools
Affects Versions: 0.23.0
Reporter: Rajit


$HADOOP_COMMON_HOME/bin/hadoop --config $HADOOP_CONF_DIR distcp
hdfs://<NN1>:8020/tmp/input
hdfs://<NN1>:8020/tmp/output
Exception in thread "main" 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: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 sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
Could not find the main class: org.apache.hadoop.tools.DistCp. Program will exit.

it used to work before, do we need to export any environment variable? does distcp changed its place?

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

Search Discussions

  • Rajit (Resolved) (JIRA) at Sep 27, 2011 at 8:32 am
    [ https://issues.apache.org/jira/browse/HDFS-2370?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Rajit resolved HDFS-2370.
    -------------------------

    Resolution: Not A Problem
    Fix Version/s: 0.23.0

    As the resolution is deployment related , I am closing this bug
    Distcp not working due to NoClassDefFoundError: org/apache/hadoop/tools/DistCp
    ------------------------------------------------------------------------------

    Key: HDFS-2370
    URL: https://issues.apache.org/jira/browse/HDFS-2370
    Project: Hadoop HDFS
    Issue Type: Bug
    Components: tools
    Affects Versions: 0.23.0
    Reporter: Rajit
    Fix For: 0.23.0


    $HADOOP_COMMON_HOME/bin/hadoop --config $HADOOP_CONF_DIR distcp
    hdfs://<NN1>:8020/tmp/input
    hdfs://<NN1>:8020/tmp/output
    Exception in thread "main" 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: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 sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
    Could not find the main class: org.apache.hadoop.tools.DistCp. Program will exit.
    it used to work before, do we need to export any environment variable? does distcp changed its place?
    --
    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

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouphdfs-dev @
categorieshadoop
postedSep 27, '11 at 12:39a
activeSep 27, '11 at 8:32a
posts2
users1
websitehadoop.apache.org...
irc#hadoop

1 user in discussion

Rajit (Resolved) (JIRA): 2 posts

People

Translate

site design / logo © 2022 Grokbase