JaySenSharma created AMBARI-23415:
-------------------------------------

             Summary: Remove unwanted trailing slash at the end of 
hbase_pid_dir path in ams-hbase-env 
                 Key: AMBARI-23415
                 URL: https://issues.apache.org/jira/browse/AMBARI-23415
             Project: Ambari
          Issue Type: Bug
          Components: ambari-metrics
    Affects Versions: trunk, 2.7.0
            Reporter: JaySenSharma
            Assignee: JaySenSharma


- While starting the AMS collector we can see that it has two slash in the PID 
file path 
"/var/run/ambari-metrics-collector{color:red}//{color}hbase-ams-regionserver.pid"
 . which does not look good and seems error prone. It should be removed. 

{code}
Execute['/usr/lib/ams-hbase/bin/hbase-daemon.sh --config /etc/ams-hbase/conf 
stop regionserver'] {'on_timeout': 'ls 
/var/run/ambari-metrics-collector//hbase-ams-regionserver.pid >/dev/null 2>&1 
&& ps `cat /var/run/ambari-metrics-collector//hbase-ams-regionserver.pid` 
>/dev/null 2>&1 && ambari-sudo.sh -H -E kill -9 `ambari-sudo.sh cat 
/var/run/ambari-metrics-collector//hbase-ams-regionserver.pid`', 'timeout': 30, 
'user': 'ams'}
{code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to