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 D5D5E17356 for ; Mon, 29 Sep 2014 05:35:34 +0000 (UTC) Received: (qmail 26839 invoked by uid 500); 29 Sep 2014 05:35:34 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 26786 invoked by uid 500); 29 Sep 2014 05:35: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 26775 invoked by uid 99); 29 Sep 2014 05:35:34 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Sep 2014 05:35:34 +0000 Date: Mon, 29 Sep 2014 05:35:34 +0000 (UTC) From: "Allen Wittenauer (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HADOOP-11150) hadoop command should accept CLASSNAME without package name MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HADOOP-11150?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14151377#comment-14151377 ] Allen Wittenauer commented on HADOOP-11150: ------------------------------------------- This is an incomplete fix, as this now causes things like "hadoop -jar" or "hadoop thisisnotacommand" to generate a stack trace instead of usage, defeating the purpose of the original code. See HADOOP-11092. It should be noted that, AFAIK, all of the code that ships with Hadoop is in a package. The current code breaks exactly one situation: someone has injected Hadoop's classpath with their own jars where the main method is not in a package. While it's certainly possible, it's also unlikely in the vast majority of cases and probably not worth the much larger frustration of going through the entire java launch sequence just to be told you typo'd. That said, HADOOP-11092 should probably be marked as an incompatible change with a release note that basically says if you are doing the above situation, sorry, but it won't work anymore; stick it in a package. > hadoop command should accept CLASSNAME without package name > ----------------------------------------------------------- > > Key: HADOOP-11150 > URL: https://issues.apache.org/jira/browse/HADOOP-11150 > Project: Hadoop Common > Issue Type: Improvement > Components: scripts > Reporter: Masatake Iwasaki > Assignee: Masatake Iwasaki > Priority: Minor > Attachments: HADOOP-11150-0.patch > > > hadoop_validate_classname checks whether the classname contains ".". It is possible that classname without package is used in some examples or tutorials. -- This message was sent by Atlassian JIRA (v6.3.4#6332)