spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sean Owen (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (SPARK-15203) The spark daemon shell script error, daemon process start successfully but script output fail message.
Date Fri, 20 May 2016 13:18:13 GMT

     [ https://issues.apache.org/jira/browse/SPARK-15203?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Sean Owen updated SPARK-15203:
------------------------------
    Assignee: Weichen Xu

> The spark daemon shell script error, daemon process start successfully but script output
fail message.
> ------------------------------------------------------------------------------------------------------
>
>                 Key: SPARK-15203
>                 URL: https://issues.apache.org/jira/browse/SPARK-15203
>             Project: Spark
>          Issue Type: Bug
>          Components: Deploy
>    Affects Versions: 1.6.1, 1.6.2, 2.0.0, 2.1.0
>            Reporter: Weichen Xu
>            Assignee: Weichen Xu
>            Priority: Minor
>              Labels: patch
>             Fix For: 2.0.0
>
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> When using sbin/start-master.sh to start spark master daemon, sometimes the daemon service
started successfully, but the shell script print error message such as:
>  failed to launch org.apache.spark.deploy.master.Master...
> it makes me confused.
> This bug is because, sbin/spark-daemon.sh script use bin/spark-class shell to start daemon,
then sleep 2s and check whether the daemon process exists, using shell script like following:
> if [[ ! $(ps -p "$newpid" -o comm=) =~ "java" ]]
> the problem is, some machine with bad performance may start the daemon using a long time(exceeding
2s), but still can start daemon successfully, but in this case, the shell script judgement
! $(ps -p "$newpid" -o comm=) =~ "java" will fail, because at this time, the $newpid process
is still shell process, until the daemon started, it turns into java process. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org


Mime
View raw message