You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-issues@hadoop.apache.org by "Vrushali C (JIRA)" <ji...@apache.org> on 2019/04/04 05:41:00 UTC

[jira] [Commented] (YARN-9408) @Path("/apps/{appid}/appattempts") error message misleads

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

Vrushali C commented on YARN-9408:
----------------------------------

Hmm, so I am trying understand this error. Looks like it may be thrown at this line
https://github.com/apache/hadoop/blob/trunk/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-timelineservice-hbase/hadoop-yarn-server-timelineservice-hbase-client/src/main/java/org/apache/hadoop/yarn/server/timelineservice/storage/reader/AbstractTimelineStorageReader.java#L85

It's because there result set was empty/null. 

Looking at the code, it is trying to look up the flow context for this app id and it does not find anything. I am wondering if catching all NotFoundExceptions is a good idea. Perhaps we can add to the exception message and enhance it rather than printing out a completely new message. 



> @Path("/apps/{appid}/appattempts") error message misleads
> ---------------------------------------------------------
>
>                 Key: YARN-9408
>                 URL: https://issues.apache.org/jira/browse/YARN-9408
>             Project: Hadoop YARN
>          Issue Type: Sub-task
>          Components: ATSv2
>    Affects Versions: 3.2.0
>            Reporter: Prabhu Joseph
>            Assignee: Prabhu Joseph
>            Priority: Minor
>         Attachments: YARN-9408-001.patch, YARN-9408-002.patch
>
>
> {code} @Path("/apps/{appid}/appattempts") {code} error message is misleading. NotFoundException "Unable to find the context flow name, and flow run id, and user id" is displayed while app attempts is looked.
> {code}
> [hbase@yarn-ats-3 ~]$ curl -s "http://yarn-ats-3:8198/ws/v2/timeline/apps/application_1553258815132_0004/appattempts?user.name=hbase" | jq .
> {
>   "exception": "NotFoundException",
>   "message": "java.lang.Exception: Unable to find the context flow name, and flow run id, and user id for clusterId=ats, appId=application_1553258815132_0004",
>   "javaClassName": "org.apache.hadoop.yarn.webapp.NotFoundException"
> }
> [hbase@yarn-ats-3 ~]$ curl -s "http://yarn-ats-3:8198/ws/v2/timeline/clusters/ats/apps/application_1553258815132_0005/appattempts?user.name=hbase" | jq .
> {
>   "exception": "NotFoundException",
>   "message": "java.lang.Exception: Unable to find the context flow name, and flow run id, and user id for clusterId=ats, appId=application_1553258815132_0005",
>   "javaClassName": "org.apache.hadoop.yarn.webapp.NotFoundException"
> }
> [hbase@yarn-ats-3 ~]$ curl -s "http://yarn-ats-3:8198/ws/v2/timeline/clusters/ats1/apps/application_1553258815132_0001/containers/container_e14_1553258815132_0001_01_000001?user.name=hbase" | jq .
> {
>   "exception": "NotFoundException",
>   "message": "java.lang.Exception: Unable to find the context flow name, and flow run id, and user id for clusterId=ats1, appId=application_1553258815132_0001",
>   "javaClassName": "org.apache.hadoop.yarn.webapp.NotFoundException"
> }
> [hbase@yarn-ats-3 ~]$ curl -s "http://yarn-ats-3:8198/ws/v2/timeline/clusters/ats1/apps/application_1553258815132_0001/appattempts/appattempt_1553258815132_0001_000001/containers?user.name=hbase" | jq .
> {
>   "exception": "NotFoundException",
>   "message": "java.lang.Exception: Unable to find the context flow name, and flow run id, and user id for clusterId=ats1, appId=application_1553258815132_0001",
>   "javaClassName": "org.apache.hadoop.yarn.webapp.NotFoundException"
> }
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-issues-help@hadoop.apache.org