chukwa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jerome Boulon (JIRA)" <j...@apache.org>
Subject [jira] Created: (CHUKWA-58) Watchdog is using $CHUKWA_HOME while PidFile.java is using CHUKWA_PID_DIR
Date Fri, 27 Mar 2009 21:42:50 GMT
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
            Priority: Blocker


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.


Mime
View raw message