You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "Andrew Onischuk (JIRA)" <ji...@apache.org> on 2016/04/06 12:57:25 UTC

[jira] [Updated] (AMBARI-15729) ambari-server script not able to load log4.properties other than the default location.

     [ https://issues.apache.org/jira/browse/AMBARI-15729?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrew Onischuk updated AMBARI-15729:
-------------------------------------
    Attachment: AMBARI-15729.patch

> 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)