Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-321 [Umbrella] Generic application history service
  3. YARN-1007

[YARN-321] Enhance History Reader interface for Containers

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • YARN-321
    • 2.4.0
    • None
    • None

    Description

      If we want to show the containers used by application/app attempt, We need to have two more API's which returns collection of ContainerHistoryData for application id and applcation attempt id something like below.

        Collection<ContainerHistoryData> getContainers(
            ApplicationAttemptId appAttemptId);
      
        Collection<ContainerHistoryData> getContainers(ApplicationId appId);
      
        /**
         * This method returns {@link Container} for specified {@link ContainerId}.
         * 
         * @param {@link ContainerId}
         * @return {@link Container} for ContainerId
         */
        ContainerHistoryData getAMContainer(ContainerId containerId);
      

      In the above API, we need to change the argument to application attempt id or we can remove this API because every attempt history data has master container id field, using master container id, history data can get using this below API if it takes argument as container id.

        /**
         * This method returns {@link ContainerHistoryData} for specified
         * {@link ApplicationAttemptId}.
         * 
         * @param {@link ApplicationAttemptId}
         * @return {@link ContainerHistoryData} for ApplicationAttemptId
         */
        ContainerHistoryData getContainer(ApplicationAttemptId appAttemptId);
      

      Here application attempt can use numbers of containers but we cannot choose which container history data to return. This API argument also need to be changed to take container id instead of app attempt id.

      Attachments

        1. YARN-1007-1.patch
          5 kB
          Mayank Bansal
        2. YARN-1007-2.patch
          5 kB
          Mayank Bansal

        Issue Links

          Activity

            People

              mayank_bansal Mayank Bansal
              devaraj Devaraj Kavali
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: