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 13:02:25 UTC
[jira] [Commented] (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:comment-tabpanel&focusedCommentId=15228099#comment-15228099 ]
Andrew Onischuk commented on AMBARI-15729:
------------------------------------------
Looks like there is a big queue on Hadoop QA:
{noformat}
[INFO] Rat check: Summary of files. Unapproved: 0 unknown: 0 generated: 0 approved: 141 licence.
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Ambari Views ...................................... SUCCESS [3.360s]
[INFO] Ambari Metrics Common ............................. SUCCESS [0.535s]
[INFO] Ambari Server ..................................... SUCCESS [50.389s]
[INFO] Ambari Agent ...................................... SUCCESS [10.186s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1:05.434s
[INFO] Finished at: Wed Apr 06 13:54:32 EEST 2016
[INFO] Final Memory: 67M/1199M
[INFO] ------------------------------------------------------------------------
{noformat}
> 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)