[
https://issues.apache.org/jira/browse/AMBARI-15989?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Robert Levas updated AMBARI-15989:
----------------------------------
Resolution: Fixed
Status: Resolved (was: Patch Available)
Committed to trunk
{noformat}
commit c6c4d5ecf615da3bfa537e152f7f316196360440
Author: Robert Levas <[email protected]>
Date: Wed Apr 20 15:48:43 2016 -0400
{noformat}
Committed to branch-2.2
{noformat}
commit 4e8670e46c23abe39e502c0460af647d54729ae5
Author: Robert Levas <[email protected]>
Date: Wed Apr 20 15:49:30 2016 -0400
{noformat}
Committed to branch-2.2.2
{noformat}
commit f33c18b9bcb982a89a50f876e93acffdf8dae5a2
Author: Robert Levas <[email protected]>
Date: Wed Apr 20 16:33:28 2016 -0400
{noformat}
> exception in ambari agent log for atlas metadata server script
> --------------------------------------------------------------
>
> Key: AMBARI-15989
> URL: https://issues.apache.org/jira/browse/AMBARI-15989
> Project: Ambari
> Issue Type: Bug
> Components: ambari-server
> Affects Versions: 2.2.2
> Reporter: Robert Levas
> Assignee: Robert Levas
> Priority: Critical
> Fix For: 2.2.2
>
> Attachments: AMBARI-15989_branch-2.2_01.patch,
> AMBARI-15989_trunk_01.patch
>
>
> {code}
> INFO 2016-04-20 01:23:58,838 PythonReflectiveExecutor.py:64 - Reflective
> command failed with exception:
> Traceback (most recent call last):
> File
> "/usr/lib/python2.6/site-packages/ambari_agent/PythonReflectiveExecutor.py",
> line 56, in run_file
> imp.load_source('__main__', script)
> File
> "/var/lib/ambari-agent/cache/common-services/ATLAS/0.1.0.2.3/package/scripts/metadata_server.py",
> line 132, in <module>
> MetadataServer().execute()
> File
> "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py",
> line 219, in execute
> method(env)
> File
> "/var/lib/ambari-agent/cache/common-services/ATLAS/0.1.0.2.3/package/scripts/metadata_server.py",
> line 99, in security_status
> {'application.properties': FILE_TYPE_PROPERTIES})
> File
> "/usr/lib/python2.6/site-packages/resource_management/libraries/functions/security_commons.py",
> line 141, in get_params_from_filesystem
> config.readfp(ini_fp)
> File "/usr/lib64/python2.7/ConfigParser.py", line 324, in readfp
> self._read(fp, filename)
> File "/usr/lib64/python2.7/ConfigParser.py", line 546, in _read
> raise e
> ParsingError: File contains parsing errors: <???>
> [line 38]: 'DEFAULT\n'
> INFO 2016-04-20 01:24:07,618 Heartbeat.py:78 - Building Heartbeat:
> {responseId = 97, timestamp = 1461115447618, commandsInProgress = False,
> componentsMapped = True}
> {code}
> *Cause*
> The issue has to do with the python built-in ConfigParser. It fails to parse
> multi-lined property vales unless there is a space added to the beginning of
> the additional lines
> *Solution*
> Fix the call to the ConfigParser to add the missing spaces (for internal use
> only). The data in the relevant config files are not altered
> While making changes fix the logic in the Atlas security_status method to
> properly determine security status.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)