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 A74C919982 for ; Thu, 21 Apr 2016 14:22:26 +0000 (UTC) Received: (qmail 86790 invoked by uid 500); 21 Apr 2016 14:22:26 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 86715 invoked by uid 500); 21 Apr 2016 14:22:26 -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 86656 invoked by uid 99); 21 Apr 2016 14:22:26 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Apr 2016 14:22:26 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id D48C22C1F60 for ; Thu, 21 Apr 2016 14:22:25 +0000 (UTC) Date: Thu, 21 Apr 2016 14:22:25 +0000 (UTC) From: "Allen Wittenauer (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HADOOP-13045) hadoop_add_classpath is not working in .hadooprc 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-13045?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15251956#comment-15251956 ] Allen Wittenauer commented on HADOOP-13045: ------------------------------------------- Correct. .hadooprc is the basic equivalent of the hadoop-env.sh file. To quote the UnixShellGuide.md file: {code} This file is always read to initialize and override any variables that the user may want to customize. {code} There is no mention of the functions working inside of it. None of the _HOME vars are guaranteed to be set either as a result. > hadoop_add_classpath is not working in .hadooprc > ------------------------------------------------ > > Key: HADOOP-13045 > URL: https://issues.apache.org/jira/browse/HADOOP-13045 > Project: Hadoop Common > Issue Type: Bug > Reporter: Akira AJISAKA > > {{hadoop_basic_function}} resets {{CLASSPATH}} after {{.hadooprc}} is called. > {noformat} > $ hadoop --debug version > (snip) > DEBUG: Applying the user's .hadooprc > DEBUG: Initial CLASSPATH=/root/hadoop-tools-0.1-SNAPSHOT.jar > DEBUG: Initialize CLASSPATH > DEBUG: Rejected colonpath(JAVA_LIBRARY_PATH): /usr/local/hadoop/build/native > DEBUG: Rejected colonpath(JAVA_LIBRARY_PATH): /usr/local/hadoop/lib/native > DEBUG: Initial CLASSPATH=/usr/local/hadoop/share/hadoop/common/lib/* > {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)