Andrew Onischuk created AMBARI-9595:
---------------------------------------
Summary: 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)