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

repair test org.apache.hadoop.mapreduce.security.TestBinaryTokenFile

Log workAgile BoardRank to TopRank to BottomAttach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0.3-alpha, 0.23.6
    • Component/s: None
    • Labels:
      None

      Description

      the test is @Ignore-ed, and fails being enabled.
      Suggested to repair it to fill the coverage gap.

      Problems fixed in the test:
      (1) MRConfig.FRAMEWORK_NAME and YarnConfiguration.RM_PRINCIPAL properties must be correctly set in the configuration to correctly enable the security in the way this test implies.
      (2) The property MRJobConfig.MAPREDUCE_JOB_CREDENTIALS_BINARY now is not passed into the Job configuration – it is intentionally deleted from there. So, we pass the binary file name in another dedicated property.
      (3) The test was using deprecated cluster classes. All them are updated to the modern analogs.
      (4) The delegation token found in the job context is now correctly compared to the one deserialized from the binary file.

        Attachments

          Activity

          $i18n.getText('security.level.explanation', $currentSelection) Viewable by All Users
          Cancel

            People

            • Assignee:
              Unassigned Assign to me
              Reporter:
              iveselovsky Ivan A. Veselovsky

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment