[ https://issues.apache.org/jira/browse/YARN-8299?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16543510#comment-16543510 ]
Chandni Singh commented on YARN-8299: ------------------------------------- {quote} If user input a state that is not in the defined list, it throws ERROR 500 error. It would be nice to report ERROR 400 BAD REQUEST, and display possible states. Since user can only input one state, would it make sense to change -states to -state? {quote} [~eyang] user can input multiple states. {code:java} yarn container -list test1 -states UPGRADING,NEEDS_UPGRADE | python -m json.tool{code} > Yarn Service Upgrade: Add GET APIs that returns instances matching query > params > ------------------------------------------------------------------------------- > > Key: YARN-8299 > URL: https://issues.apache.org/jira/browse/YARN-8299 > Project: Hadoop YARN > Issue Type: Sub-task > Reporter: Chandni Singh > Assignee: Chandni Singh > Priority: Major > Attachments: YARN-8299.001.patch > > > We need APIs that returns containers that match the query params. These are > needed so that we can find out what containers have been upgraded. -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: yarn-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: yarn-issues-h...@hadoop.apache.org