ambari-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hoover (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 02:14:20 GMT

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

Hoover commented on AMBARI-15729:
---------------------------------

hi Andrew Onischuk,
http://s3.amazonaws.com/dev.hortonworks.com/ambari/centos6/2.x/latest/2.4.0.0/ambaribn.repo
used for install ambari, but 
#ambari-server setup
logging.....
Using python /usr/bin/python
Setup ambari-server
Traceback (most recent call last):
File "/usr/sbin/ambari-server.py", line 33, in <module>
from ambari_server.dbConfiguration import DATABASE_NAMES, LINUX_DBMS_KEYS_LIST
File "/usr/lib/python2.6/site-packages/ambari_server/dbConfiguration.py", line 28, in <module>
from ambari_server.serverConfiguration import decrypt_password_for_alias, get_ambari_properties,
get_is_secure, \
File "/usr/lib/python2.6/site-packages/ambari_server/serverConfiguration.py", line 36, in
<module>
from ambari_commons.os_utils import run_os_command, search_file, set_file_permissions, parse_log4j_file
ImportError: cannot import name parse_log4j_file

> 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