ambari-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Onischuk (JIRA)" <j...@apache.org>
Subject [jira] [Created] (AMBARI-15729) ambari-server script not able to load log4.properties other than the default location.
Date Wed, 06 Apr 2016 10:57:25 GMT
Andrew Onischuk created AMBARI-15729:
----------------------------------------

             Summary: ambari-server script not able to load log4.properties other than the
default location.
                 Key: AMBARI-15729
                 URL: https://issues.apache.org/jira/browse/AMBARI-15729
             Project: Ambari
          Issue Type: Bug
            Reporter: Andrew Onischuk
            Assignee: Andrew Onischuk
             Fix For: 2.4.0
         Attachments: AMBARI-15729.patch

Ambari server script is using hard coded path to load _log4.properties_ file

**serverConfiguration.py**
    
    
    
    self.OUT_DIR = parse_log4j_file(AmbariPath.get("/etc/ambari-server/conf/log4j.properties"))['ambari.log.dir’]
    

In case Ambari server is installed to other than the default location amber
server script won't be able to load log4j.properties

_get_conf_dir()_ should be used to determine the path of log4j.properties
file.

e.g.

    
    
    
    self.OUT_DIR = parse_log4j_file(get_conf_dir() + "/log4j.properties"))['ambari.log.dir’]
    





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

Mime
View raw message