Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-14231

Using parentheses is not allowed in auth_to_local regex

Add voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Patch Available
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      I tried to set the following property for auth_to_local property:

      "RULE:[2:$1]((n|d)n)s/.*/hdfs//

      but I got the following exception:

      Exception in thread "main" java.util.regex.PatternSyntaxException: Unclosed group near index 9
      (nn|dn|jn

      I found that this occurs because ruleParser in org.apache.hadoop.security.authentication.util.KerberosName excludes closing parentheses.

      I do not really see the value of excluding parentheses (do I miss something?) so I would remove this restriction to be able to use more regex functionalities.

      Attachments

        1. HADOOP-14231.01.patch
          3 kB
          Andras Bokor

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            boky01 Andras Bokor
            boky01 Andras Bokor

            Dates

              Created:
              Updated:

              Slack

                Issue deployment