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

Xuan Gong commented on YARN-6126:
---------------------------------

It is because:
1) if partial log aggregation is enabled, the object ("containerLogsInfo") is 
JSONArray type
2) if not, the object("containerLogsInfo") is JSONObject

We should handle both of them. Uploaded a patch to fix it. 

It is hard to add a unit test, but do the manual test and verify it works fine.

> Obtaining app logs for Running application fails with "Unable to parse json 
> from webservice. Error:"
> ----------------------------------------------------------------------------------------------------
>
>                 Key: YARN-6126
>                 URL: https://issues.apache.org/jira/browse/YARN-6126
>             Project: Hadoop YARN
>          Issue Type: Sub-task
>            Reporter: Xuan Gong
>            Assignee: Xuan Gong
>
> After YARN-6099, we can output aggregated log files info as well as local log 
> files info if we enabled partial log aggregation. This breaks the original 
> logic in logsCLI



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to