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 7285291E9 for ; Mon, 18 Jun 2012 19:29:43 +0000 (UTC) Received: (qmail 82639 invoked by uid 500); 18 Jun 2012 19:29:43 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 82600 invoked by uid 500); 18 Jun 2012 19:29:43 -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 82590 invoked by uid 99); 18 Jun 2012 19:29:43 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Jun 2012 19:29:43 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id EDD541402B8 for ; Mon, 18 Jun 2012 19:29:42 +0000 (UTC) Date: Mon, 18 Jun 2012 19:29:42 +0000 (UTC) From: "Ralph LeVan (JIRA)" To: common-issues@hadoop.apache.org Message-ID: <1799820356.26438.1340047782983.JavaMail.jiratomcat@issues-vm> In-Reply-To: <1667726199.26415.1340047422788.JavaMail.jiratomcat@issues-vm> Subject: [jira] [Commented] (HADOOP-8513) -libjars parm does not work with "hadoop jar" command 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-8513?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13396176#comment-13396176 ] Ralph LeVan commented on HADOOP-8513: ------------------------------------- I have tracked down the source of this bug. The GenericOptionsParser is called to process the -libjars parm. It is called with the args[] array that is passed to the class's main() method. That arg array starts with two unnamed arguments representing the input and output directories. Sadly, those are not legal GenericOptions and the GenericOptionsParser quietly fails. A workaround is to call the GenericOptionsParser yourself after having first removed those 2 leading parms. I believe a satisfactory fix would be to add two optional unnamed leading parms to the CLI Options list for GenericOptions and have the GenericOptionsParser ignore them. I don't know the CLI well enough to know if that is legal. > -libjars parm does not work with "hadoop jar" command > ----------------------------------------------------- > > Key: HADOOP-8513 > URL: https://issues.apache.org/jira/browse/HADOOP-8513 > Project: Hadoop Common > Issue Type: Bug > Components: ha > Affects Versions: 0.20.2 > Environment: Linux > Reporter: Ralph LeVan > > When using the "hadoop jar" command the -libjars parm is ignored -- 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