Uploaded image for project: 'Hadoop Map/Reduce'
  1. Hadoop Map/Reduce
  2. MAPREDUCE-5093

Improve RM and HS token acquisition during job submission

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 0.23.0, 2.0.0-alpha, 3.0.0-alpha1
    • None
    • job submission
    • None

    Description

      Jobs that intend to submit other jobs (ex. oozie, pig) require a RM token. Yarn has added the requirement of a HS token. Currently the submitter is required to explicitly obtain a RM token with the correct renewer and add it to the credentials. To avoid breaking compatibility, the HS token is implicitly acquired if the submitter acquired a RM token via getDelegationToken.

      Viewfs exposed the limitations of assuming only one token per filesystem. Similarly, the RM + HS token has the same issue. We should consider changing the api, ex. getDelegationToken(renewer) to addDelegationTokens(renewer, creds) ala the filesystem change.

      Further, token acquisition should ideally be considered an internal implementation detail required by security. Submitters, particularly oozie & pig, would benefit greatly from conf setting to indicate jobs are allowed to submit jobs. This conf setting would trigger invoking the proposed addDelegationTokens plus ensure the correct renewer is used, further freeing submitters from knowing internal implementation details of security.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              daryn Daryn Sharp
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated: