hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tanping Wang (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-7331) Makes hadoop-daemon.sh to return 1 if daemon processes did not get started
Date Sun, 29 May 2011 03:57:47 GMT

    [ https://issues.apache.org/jira/browse/HADOOP-7331?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13040735#comment-13040735
] 

Tanping Wang commented on HADOOP-7331:
--------------------------------------

The idea is to simply check if the PID still exists shortly after the JVM of the daemon process
is created.  As discussed early, we are simplifying the solution to deal with common scenarios
that may cause JVM to die shortly after the JVM is created, such as invalid configuration
files.  And yes, this is machine specific.  We do not have data to show how much exact time
the JVM may die on top of commodity hardware.  This is to provide the operator a quick feedback
if JVM may not have been started if some straight-forward mis-configuration has happened.
 And regarding to why choose 3 seconds??  If you notice that there is also
{code} 
sleep 1; head "$log"
{code}
in the same question can be asked regarding to why choose 1 second.  I simply want to give
a few seconds before checking the existence of JVM after its starts.  And I can certainly
make this sleep time configurable for the operators to adjust.

(BTW, what are you referring to by "one of those"?)

> Makes hadoop-daemon.sh to return 1 if daemon processes did not get started
> --------------------------------------------------------------------------
>
>                 Key: HADOOP-7331
>                 URL: https://issues.apache.org/jira/browse/HADOOP-7331
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: scripts
>    Affects Versions: 0.23.0
>            Reporter: Tanping Wang
>            Assignee: Tanping Wang
>            Priority: Trivial
>             Fix For: 0.23.0
>
>         Attachments: HADOOP-7331.2.patch, HADOOP-7331.patch
>
>
> Makes hadoop-daemon.sh to return 1 if daemon processes did not get started.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message