You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Hudson (JIRA)" <ji...@apache.org> on 2015/02/12 15:29:11 UTC

[jira] [Commented] (AMBARI-9595) Ambari greps 'running' for service daemon status, which does not apply to certain services/platforms

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

Hudson commented on AMBARI-9595:
--------------------------------

SUCCESS: Integrated in Ambari-trunk-Commit #1748 (See [https://builds.apache.org/job/Ambari-trunk-Commit/1748/])
AMBARI-9595. Ambari greps 'running' for service daemon status, which does not apply to certain services/platforms (aonishuk) (aonishuk: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=f95eb95295668eab7a56f8e24378f83675ccd60a)
* ambari-server/src/test/python/stacks/2.0.6/HIVE/test_mysql_server.py
* ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/mysql_service.py


> Ambari greps 'running' for service daemon status, which does not apply to certain services/platforms
> ----------------------------------------------------------------------------------------------------
>
>                 Key: AMBARI-9595
>                 URL: https://issues.apache.org/jira/browse/AMBARI-9595
>             Project: Ambari
>          Issue Type: Bug
>            Reporter: Andrew Onischuk
>            Assignee: Andrew Onischuk
>             Fix For: 2.0.0
>
>
> PROBLEM:
> For example, on CentoOS 6.5, manually install mysql
> [root@hdpsecc01 init.d]# mysql --version  
> mysql Ver 14.14 Distrib 5.6.20, for Linux (x86_64) using EditLine wrapper
> /etc/init.d/mysqld  
> shows that when the service is not running, it is  
> 'MySQL is not running'
> While Ambari 1.7.0  
> /var/lib/ambari-
> agent/cache/stacks/HDP/2.0.6/services/HIVE/package/scripts/my_services.py
> status_cmd = format('service
> {daemon_name} status | grep running')  
>   
> so it thinks the service is running when it is not.  
>   
> Jonathan Hurley suggested that a fix needs to fix on other linux distros as it
> doesn't work there either  
> Can keep status_cmd = format('service {daemon_name}
> status') for redhat family OS's, but for other families, need a different
> not_if command.
> For now, for centos/redhat can try change the ambari script above  
> status_cmd = format('service
> {daemon_name} status | grep running')  
>   
> to  
> status_cmd = format('service {daemon_name}
> status')



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