You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "Sumit Mohanty (JIRA)" <ji...@apache.org> on 2016/06/08 17:30:21 UTC
[jira] [Resolved] (AMBARI-17122) Syntax error in log statement
[ https://issues.apache.org/jira/browse/AMBARI-17122?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sumit Mohanty resolved AMBARI-17122.
------------------------------------
Resolution: Fixed
committed to trunk and branch-2.4
> Syntax error in log statement
> -----------------------------
>
> Key: AMBARI-17122
> URL: https://issues.apache.org/jira/browse/AMBARI-17122
> Project: Ambari
> Issue Type: Bug
> Components: ambari-agent
> Affects Versions: 2.4.0
> Reporter: Sumit Mohanty
> Assignee: Sumit Mohanty
> Priority: Critical
> Fix For: 2.4.0
>
> Attachments: AMBARI-17122.patch
>
>
> {code}
> INFO 2016-06-08 09:22:37,125 ActionQueue.py:348 - Begin command output log for command with id = 20, role = METRICS_COLLECTOR, roleCommand = INSTALL
> ERROR 2016-06-08 09:22:37,125 ActionQueue.py:230 - Exception while processing EXECUTION_COMMAND command
> Traceback (most recent call last):
> File "/usr/lib/python2.6/site-packages/ambari_agent/ActionQueue.py", line 221, in process_command
> self.execute_command(command)
> File "/usr/lib/python2.6/site-packages/ambari_agent/ActionQueue.py", line 349, in execute_command
> self.log_command_output(roleResult['stdout'], str(command['taskId']))
> File "/usr/lib/python2.6/site-packages/ambari_agent/ActionQueue.py", line 444, in log_command_output
> logger.info("Cmd log for taskId={0}: ".format(taskId), text)
> File "/usr/lib/python2.7/logging/__init__.py", line 1152, in info
> self._log(INFO, msg, args, **kwargs)
> File "/usr/lib/python2.7/logging/__init__.py", line 1271, in _log
> self.handle(record)
> File "/usr/lib/python2.7/logging/__init__.py", line 1281, in handle
> self.callHandlers(record)
> File "/usr/lib/python2.7/logging/__init__.py", line 1321, in callHandlers
> hdlr.handle(record)
> File "/usr/lib/python2.7/logging/__init__.py", line 749, in handle
> self.emit(record)
> File "/usr/lib/python2.7/logging/handlers.py", line 842, in emit
> msg = self.format(record) + '\000'
> File "/usr/lib/python2.7/logging/__init__.py", line 724, in format
> return fmt.format(record)
> File "/usr/lib/python2.7/logging/__init__.py", line 464, in format
> record.message = record.getMessage()
> File "/usr/lib/python2.7/logging/__init__.py", line 328, in getMessage
> msg = msg % self.args
> TypeError: not all arguments converted during string formatting
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)