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] [Commented] (AMBARI-15729) ambari-server script not able to load log4.properties other than the default location.
Date Tue, 30 Aug 2016 07:48:21 GMT

    [ https://issues.apache.org/jira/browse/AMBARI-15729?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15448359#comment-15448359
] 

Andrew Onischuk commented on AMBARI-15729:
------------------------------------------

Hello [~Denpong-Hoover]

you may have an old os_utils pyc/pyo file which prevents this function from getting loaded
in your /usr/lib/python2.6/site-packages/ambari_server

> 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