Return-Path: Delivered-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Received: (qmail 9690 invoked from network); 2 Mar 2010 02:14:40 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 2 Mar 2010 02:14:40 -0000 Received: (qmail 42830 invoked by uid 500); 2 Mar 2010 02:14:38 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 42810 invoked by uid 500); 2 Mar 2010 02:14:38 -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 42802 invoked by uid 99); 2 Mar 2010 02:14:38 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Mar 2010 02:14:38 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Mar 2010 02:14:27 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 350DB29A0019 for ; Tue, 2 Mar 2010 02:14:06 +0000 (UTC) Message-ID: <1413239699.48331267496046216.JavaMail.jira@brutus.apache.org> Date: Tue, 2 Mar 2010 02:14:06 +0000 (UTC) From: "Chad Metcalf (JIRA)" To: common-issues@hadoop.apache.org Subject: [jira] Commented: (HADOOP-6606) Change the default HADOOP_PID_DIR to $HADOOP_HOME/pids In-Reply-To: <1534051484.47561267494246373.JavaMail.jira@brutus.apache.org> 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-6606?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12839972#action_12839972 ] Chad Metcalf commented on HADOOP-6606: -------------------------------------- bq. If this was wikipedia, I'd add a "citation needed" flag. There is a number of reasons why you don't put pids in /tmp. Example: tmpwatch reaping the pids for long running processes. RHEL's /etc/cron.daily/tmpwatch defaults to removing anything 10 days old bq. What happens if hadoop-env.sh sets the pid dir, do we honor that? We do. +HADOOP_PID_DIR="${HADOOP_PID_DIR:-$HADOOP_HOME/pids}" bq. Why not use the logs dir rather than introduce another dir? You are free to do so by setting a HADOOP_PID_DIR. Generally speaking pids are not kept with logs. Example: most distros file system policies want logs in /var/log and pids in /var/run. From http://tldp.org/LDP/Linux-Filesystem-Hierarchy {noformat} /var/run Contains the process identification files (PIDs) of system services and other information about the system that is valid until the system is next booted. For example, /var/run/utmp contains information about users currently logged in. {noformat} {noformat} /var/log Log files from the system and various programs/services, especially login (/var/log/wtmp, which logs all logins and logouts into the system) and syslog (/var/log/messages, where all kernel and system program message are usually stored). Files in /var/log can often grow indefinitely, and may require cleaning at regular intervals. Something that is now normally managed via log rotation utilities such as 'logrotate'. This utility also allows for the automatic rotation compression, removal and mailing of log files. Logrotate can be set to handle a log file daily, weekly, monthly or when the log file gets to a certain size. Normally, logrotate runs as a daily cron job. This is a good place to start troubleshooting general technical problems. {noformat} > Change the default HADOOP_PID_DIR to $HADOOP_HOME/pids > ------------------------------------------------------ > > Key: HADOOP-6606 > URL: https://issues.apache.org/jira/browse/HADOOP-6606 > Project: Hadoop Common > Issue Type: Improvement > Affects Versions: 0.20.2 > Reporter: Chad Metcalf > Assignee: Chad Metcalf > Attachments: HADOOP-6606.patch > > > /tmp should not be used as a pid directory. There is too high a likelihood that pid files could be altered or deleted. A more reasonable default is $HADOOP_HOME/pids. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.