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

Andras Gyori commented on YARN-10031:
-------------------------------------

Thank you [~adam.antal] for the answers. The null check provides us a wildcard 
ability, which basically means *"*".* With that in mind, my intention with that 
line is the following:

only filter out the containers, if the containerId is set (hence the null 
check).

I have uploaded a test class for the collector. I have skipped testing the 
HsWebServices, because it does not contain any meaningful logic. Collecting 
multiple query parameter into a Set is the responsibility of the underlying 
Java library, therefore I am not testing the endpoint at that level.

> Create a general purpose log request with additional query parameters
> ---------------------------------------------------------------------
>
>                 Key: YARN-10031
>                 URL: https://issues.apache.org/jira/browse/YARN-10031
>             Project: Hadoop YARN
>          Issue Type: Sub-task
>          Components: yarn
>            Reporter: Adam Antal
>            Assignee: Andras Gyori
>            Priority: Major
>         Attachments: YARN-10031-WIP.001.patch, YARN-10031.001.patch
>
>
> The current endpoints are robust but not very flexible with regards to 
> filtering options. I suggest to add an endpoint which provides filtering 
> options.
> E.g.:
> In ATS we have multiple endpoints:
> /containers/{containerid}/logs/{filename}
> /containerlogs/{containerid}/{filename}
> We could add @QueryParams parameters to the REST endpoints like this:
> /containers/{containerid}/logs?fileName=stderr&containerState=FAILED&nodeId=nm45



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

Reply via email to