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 50B917765 for ; Tue, 6 Sep 2011 18:43:35 +0000 (UTC) Received: (qmail 24544 invoked by uid 500); 6 Sep 2011 18:43:35 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 24212 invoked by uid 500); 6 Sep 2011 18:43: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 24201 invoked by uid 99); 6 Sep 2011 18:43:34 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Sep 2011 18:43:34 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,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; Tue, 06 Sep 2011 18:43:30 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id F3F1783B1E for ; Tue, 6 Sep 2011 18:43:09 +0000 (UTC) Date: Tue, 6 Sep 2011 18:43:09 +0000 (UTC) From: "Hadoop QA (JIRA)" To: common-issues@hadoop.apache.org Message-ID: <238742588.21690.1315334589995.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <567017899.13810.1315015629873.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (HADOOP-7610) /etc/profile.d does not exist on Debian MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HADOOP-7610?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13098254#comment-13098254 ] Hadoop QA commented on HADOOP-7610: ----------------------------------- -1 overall. Here are the results of testing the latest attachment http://issues.apache.org/jira/secure/attachment/12493190/HADOOP-7610-branch-0.20-security.patch against trunk revision . +1 @author. The patch does not contain any @author tags. -1 tests included. The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch. -1 patch. The patch command could not apply the patch. Console output: https://builds.apache.org/job/PreCommit-HADOOP-Build/141//console This message is automatically generated. > /etc/profile.d does not exist on Debian > --------------------------------------- > > Key: HADOOP-7610 > URL: https://issues.apache.org/jira/browse/HADOOP-7610 > Project: Hadoop Common > Issue Type: Bug > Components: scripts > Affects Versions: 0.20.204.0, 0.23.0 > Environment: Java 6, Debian > Reporter: Eric Yang > Assignee: Eric Yang > Fix For: 0.20.205.0, 0.23.0 > > Attachments: HADOOP-7610-branch-0.20-security.patch, HADOOP-7610.patch > > > As part of post installation script, there is a symlink created in /etc/profile.d/hadoop-env.sh to source /etc/hadoop/hadoop-env.sh. Therefore, users do not need to configure HADOOP_* environment. Unfortunately, /etc/profile.d only exists in Ubuntu. [Section 9.9 of the Debian Policy|http://www.debian.org/doc/debian-policy/ch-opersys.html#s9.9] states: > {quote} > A program must not depend on environment variables to get reasonable defaults. (That's because these environment variables would have to be set in a system-wide configuration file like /etc/profile, which is not supported by all shells.) > If a program usually depends on environment variables for its configuration, the program should be changed to fall back to a reasonable default configuration if these environment variables are not present. If this cannot be done easily (e.g., if the source code of a non-free program is not available), the program must be replaced by a small "wrapper" shell script which sets the environment variables if they are not already defined, and calls the original program. > Here is an example of a wrapper script for this purpose: > {noformat} > #!/bin/sh > BAR=${BAR:-/var/lib/fubar} > export BAR > exec /usr/lib/foo/foo "$@" > {noformat} > Furthermore, as /etc/profile is a configuration file of the base-files package, other packages must not put any environment variables or other commands into that file. > {quote} > Hence the default environment setup should skip for Debian. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira