Return-Path: Delivered-To: apmail-hadoop-chukwa-dev-archive@minotaur.apache.org Received: (qmail 92692 invoked from network); 30 Mar 2009 23:54:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 30 Mar 2009 23:54:13 -0000 Received: (qmail 29740 invoked by uid 500); 30 Mar 2009 23:54:13 -0000 Delivered-To: apmail-hadoop-chukwa-dev-archive@hadoop.apache.org Received: (qmail 29723 invoked by uid 500); 30 Mar 2009 23:54:13 -0000 Mailing-List: contact chukwa-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: chukwa-dev@hadoop.apache.org Delivered-To: mailing list chukwa-dev@hadoop.apache.org Received: (qmail 29712 invoked by uid 99); 30 Mar 2009 23:54:13 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Mar 2009 23:54:13 +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; Mon, 30 Mar 2009 23:54:11 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id ACFFF234C003 for ; Mon, 30 Mar 2009 16:53:50 -0700 (PDT) Message-ID: <261249157.1238457230693.JavaMail.jira@brutus> Date: Mon, 30 Mar 2009 16:53:50 -0700 (PDT) From: "Eric Yang (JIRA)" To: chukwa-dev@hadoop.apache.org Subject: [jira] Assigned: (CHUKWA-58) Watchdog is using $CHUKWA_HOME while PidFile.java is using CHUKWA_PID_DIR In-Reply-To: <305772623.1238190170470.JavaMail.jira@brutus> 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/CHUKWA-58?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Eric Yang reassigned CHUKWA-58: ------------------------------- Assignee: Eric Yang > Watchdog is using $CHUKWA_HOME while PidFile.java is using CHUKWA_PID_DIR > ------------------------------------------------------------------------- > > Key: CHUKWA-58 > URL: https://issues.apache.org/jira/browse/CHUKWA-58 > Project: Hadoop Chukwa > Issue Type: Bug > Reporter: Jerome Boulon > Assignee: Eric Yang > Priority: Blocker > Attachments: CHUKWA-58.patch > > > PidFile is using this logic to found where to create the pid file. > String chukwaPath = System.getProperty("CHUKWA_HOME"); > StringBuffer pidFilesb = new StringBuffer(); > String pidDir = System.getenv("CHUKWA_PID_DIR"); > if (pidDir == null) { > pidDir = chukwaPath + File.separator + "var" + File.separator + "run"; > } > Watchdog should do something similar instead of using CHUKWA_HOME. > Also, watchdog is difficult to maintain so will be good to create one function that is doing all the necessary steps > and call that function for all processes that watchdog should watch for. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.