Return-Path: X-Original-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9CE6E9138 for ; Fri, 27 Jan 2012 17:50:37 +0000 (UTC) Received: (qmail 50147 invoked by uid 500); 27 Jan 2012 17:50:35 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 49603 invoked by uid 500); 27 Jan 2012 17:50:34 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-issues@hadoop.apache.org Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 49582 invoked by uid 99); 27 Jan 2012 17:50:33 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Jan 2012 17:50:33 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Jan 2012 17:50:32 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 19CF313589A for ; Fri, 27 Jan 2012 17:50:12 +0000 (UTC) Date: Fri, 27 Jan 2012 17:50:12 +0000 (UTC) From: "Jason Lowe (Created) (JIRA)" To: common-issues@hadoop.apache.org Message-ID: <794884775.1051.1327686612108.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Created] (HADOOP-7999) "hadoop archive" fails with ClassNotFoundException MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 "hadoop archive" fails with ClassNotFoundException -------------------------------------------------- Key: HADOOP-7999 URL: https://issues.apache.org/jira/browse/HADOOP-7999 Project: Hadoop Common Issue Type: Bug Components: scripts Affects Versions: 0.24.0, 0.23.1 Reporter: Jason Lowe Assignee: Jason Lowe Running "hadoop archive" from a command prompt results in this error: Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/hadoop/tools/HadoopArchives Caused by: java.lang.ClassNotFoundException: org.apache.hadoop.tools.HadoopArchives 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:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) Could not find the main class: org.apache.hadoop.tools.HadoopArchives. Program will exit. The hadoop front-end script expects the TOOL_PATH environment variable to be set, but nothing provides a default value for it if it is not set. Since $TOOL_PATH expands to nothing, the hadoop-archives jar under share/hadoop/tools/lib isn't found, and we end up with a ClassNotFound exception. -- 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