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

Using parentheses is not allowed in auth_to_local regex

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Patch Available
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Target Version/s:

      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

              People

              • Assignee:
                boky01 Andras Bokor
                Reporter:
                boky01 Andras Bokor
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated: