Uploaded image for project: 'Accumulo'
  1. Accumulo
  2. ACCUMULO-4671

ConfiguratorBase.unwrapAuthenticationToken will NPE if the Token is not in the Job's credentials

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Auto Closed
    • None
    • None
    • mapreduce
    • None

    Description

      When Kerberos is enabled, the AuthenticationToken set on the Configuration object is essentially a pointer to the Hadoop-style Token stored (securely) in the Job's credentials object.

      However, if by user error, the user thinks that they have serialized a Token (but it got lost along the way), unwrapAuthenticationToken will throw an NPE trying to extract that token. The name of the Token is abstracted away from the user (they shouldn't actually know what it is), so we should not fail hard like this.

      It would be easy to return back the original token in this case and update the javadoc accordingly to warn users.

      Attachments

        Issue Links

          Activity

            People

              elserj Josh Elser
              elserj Josh Elser
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: