Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id EECCB200CAE for ; Tue, 6 Jun 2017 23:41:23 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id EADE0160BB7; Tue, 6 Jun 2017 21:41:23 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 45EE2160BC6 for ; Tue, 6 Jun 2017 23:41:23 +0200 (CEST) Received: (qmail 90853 invoked by uid 500); 6 Jun 2017 21:41:22 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 90824 invoked by uid 99); 6 Jun 2017 21:41:22 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Jun 2017 21:41:22 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id A8B871AFDB1 for ; Tue, 6 Jun 2017 21:41:21 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.201 X-Spam-Level: X-Spam-Status: No, score=-99.201 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id h_jR3Yks6rf1 for ; Tue, 6 Jun 2017 21:41:19 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id ED0445F613 for ; Tue, 6 Jun 2017 21:41:18 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 7A397E0A2F for ; Tue, 6 Jun 2017 21:41:18 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 2EF5D21E0D for ; Tue, 6 Jun 2017 21:41:18 +0000 (UTC) Date: Tue, 6 Jun 2017 21:41:18 +0000 (UTC) From: "Allen Wittenauer (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (HADOOP-14498) HADOOP_OPTIONAL_TOOLS not parsed correctly MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 06 Jun 2017 21:41:24 -0000 [ https://issues.apache.org/jira/browse/HADOOP-14498?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16039692#comment-16039692 ] Allen Wittenauer edited comment on HADOOP-14498 at 6/6/17 9:40 PM: ------------------------------------------------------------------- OK, using 'hadoop --debug classpath' we can see exactly what is happening with the specific construction of "hadoop-azure,hadoop-aws,hadoop-azure-datalake" {code} $ bin/hadoop --debug classpath 2>&1 | grep PROFILES DEBUG: HADOOP_SHELL_PROFILES accepted hadoop-aws DEBUG: HADOOP_SHELL_PROFILES accepted hadoop-azure-datalake DEBUG: HADOOP_SHELL_PROFILES declined hadoop-azure DEBUG: HADOOP_SHELL_PROFILES accepted hdfs DEBUG: HADOOP_SHELL_PROFILES accepted mapred DEBUG: HADOOP_SHELL_PROFILES accepted yarn {code} hadoop-azure is getting rejected by the shell profiles code because it is getting up in the dedupe pattern match code. Converting this to use the new array code added in HADOOP-13595 will probably fix this. Flipping the order will also make it pass. was (Author: aw): OK, using 'hadoop --debug classpath' we can see exactly what is happening with the specific construction of "hadoop-azure,hadoop-aws,hadoop-azure-datalake" {code} $ bin/hadoop --debug classpath 2>&1 | grep PROFILES DEBUG: HADOOP_SHELL_PROFILES accepted hadoop-aws DEBUG: HADOOP_SHELL_PROFILES accepted hadoop-azure-datalake DEBUG: HADOOP_SHELL_PROFILES declined hadoop-azure DEBUG: HADOOP_SHELL_PROFILES accepted hdfs DEBUG: HADOOP_SHELL_PROFILES accepted mapred DEBUG: HADOOP_SHELL_PROFILES accepted yarn {code} hadoop-azure is getting rejected by the shell profiles code because it is getting up in the dedupe pattern match code. Converting this to use the new array code added will probably fix this. Flipping the order will also make it pass. > HADOOP_OPTIONAL_TOOLS not parsed correctly > ------------------------------------------ > > Key: HADOOP-14498 > URL: https://issues.apache.org/jira/browse/HADOOP-14498 > Project: Hadoop Common > Issue Type: Bug > Components: build > Affects Versions: 3.0.0-alpha1 > Reporter: Mingliang Liu > Priority: Critical > > # This will make hadoop-azure not show up in the hadoop classpath, though both hadoop-aws and hadoop-azure-datalake are in the classpath.{code:title=hadoop-env.sh} > export HADOOP_OPTIONAL_TOOLS="hadoop-azure,hadoop-aws,hadoop-azure-datalake" > {code} > # And if we put only hadoop-azure and hadoop-aws, both of them are shown in the classpath. > {code:title=hadoop-env.sh} > export HADOOP_OPTIONAL_TOOLS="hadoop-azure,hadoop-aws" > {code} > This makes me guess that, while parsing the {{HADOOP_OPTIONAL_TOOLS}}, we make some assumptions that hadoop tool modules have a single "-" in names, and the _hadoop-azure-datalake_ overrides the _hadoop-azure_. Or any other assumptions about the {{${project.artifactId\}}}? > Ping [~aw]. -- This message was sent by Atlassian JIRA (v6.3.15#6346) --------------------------------------------------------------------- To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: common-issues-help@hadoop.apache.org