Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-9802 YARN Timeline Service v2 (post GA features)
  3. YARN-9408

@Path("/apps/{appid}/appattempts") error message misleads

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Patch Available
    • Minor
    • Resolution: Unresolved
    • 3.2.0
    • None
    • ATSv2
    • None

    Description

       @Path("/apps/{appid}/appattempts") 

      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.

      [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"
      }
      
      

      Attachments

        1. YARN-9408-002.patch
          10 kB
          Prabhu Joseph
        2. YARN-9408-001.patch
          10 kB
          Prabhu Joseph

        Activity

          People

            groot Ashutosh Gupta
            prabhujoseph Prabhu Joseph
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: