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
Attachments
Issue Links
- relates to
-
HADOOP-14229 hadoop.security.auth_to_local example is incorrect in the documentation
- Closed