You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Andrew Onischuk (JIRA)" <ji...@apache.org> on 2015/06/23 10:56:00 UTC

[jira] [Created] (AMBARI-12086) Remove/review other occurrences of Execute (format("rm -f {pid_file}")) for non-root agent

Andrew Onischuk created AMBARI-12086:
----------------------------------------

             Summary: Remove/review other occurrences of Execute (format("rm -f {pid_file}")) for non-root agent
                 Key: AMBARI-12086
                 URL: https://issues.apache.org/jira/browse/AMBARI-12086
             Project: Ambari
          Issue Type: Bug
            Reporter: Andrew Onischuk
            Assignee: Andrew Onischuk
             Fix For: 2.1.0


Based on the issue reported by AMBARI-12043, there are few more occurrences of

    
    
    Execute (format("rm -f {pid_file}"))

that may also run into same issue.

ambari-server/src/main/resources/common-
services/AMBARI_METRICS/0.1.0/package/scripts/hbase_service.py  
ambari-server/src/main/resources/common-
services/HBASE/0.96.0.2.0/package/scripts/phoenix_service.py

Also, is the preferred fix pattern

    
    
    
    Execute(format("rm -f {pid_file}"),
            user=params.accumulo_user)
    

OR

    
    
    
    File(pid_file,
               action = "delete",
          )
    





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