[
https://issues.apache.org/jira/browse/AMBARI-15989?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15250927#comment-15250927
]
Hudson commented on AMBARI-15989:
---------------------------------
SUCCESS: Integrated in Ambari-trunk-Commit #4697 (See
[https://builds.apache.org/job/Ambari-trunk-Commit/4697/])
AMBARI-15989. exception in ambari agent log for atlas metadata server (rlevas:
[http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=c6c4d5ecf615da3bfa537e152f7f316196360440])
*
ambari-server/src/main/resources/common-services/ATLAS/0.1.0.2.3/package/scripts/params.py
* ambari-server/src/main/resources/common-services/ATLAS/0.1.0.2.3/kerberos.json
*
ambari-server/src/main/resources/common-services/ATLAS/0.1.0.2.3/package/scripts/metadata_server.py
*
ambari-common/src/main/python/resource_management/libraries/functions/security_commons.py
* ambari-server/src/test/python/stacks/2.3/ATLAS/test_metadata_server.py
* ambari-server/src/test/resources/kerberos/test_kerberos_descriptor_2_1_3.json
*
ambari-server/src/main/resources/common-services/ATLAS/0.1.0.2.3/configuration/application-properties.xml
> 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)