Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-5571

[Atsv2] Query App REST endpoint need not to expose queryParams such userId/flowname/flowrunid

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • None
    • None
    • timelinereader
    • None

    Description

      Timeline reader provides REST end point for querying app with an URL GET /ws/v2/timeline/apps/{app id} along with queryParam as an filter. But queryParam such as userId/flowname/flowrunid not at useful for querying an app with app-id. In YARN cluster, only one app-id will be exist though out life time. So userId/flowname/flowrunid not at all useful for the app-id REST empoint

        @GET
        @Path("/apps/{appid}/")
        @Produces(MediaType.APPLICATION_JSON)
        public TimelineEntity getApp(
            @Context HttpServletRequest req,
            @Context HttpServletResponse res,
            @PathParam("appid") String appId,
            @QueryParam("flowname") String flowName,
            @QueryParam("flowrunid") String flowRunId,
            @QueryParam("userid") String userId,
            @QueryParam("confstoretrieve") String confsToRetrieve,
            @QueryParam("metricstoretrieve") String metricsToRetrieve,
            @QueryParam("fields") String fields,
            @QueryParam("metricslimit") String metricsLimit) {
          return getApp(req, res, null, appId, flowName, flowRunId, userId,
              confsToRetrieve, metricsToRetrieve, fields, metricsLimit);
        }
      

      Attachments

        Activity

          People

            rohithsharma Rohith Sharma K S
            rohithsharma Rohith Sharma K S
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: