[ 
https://issues.apache.org/jira/browse/HADOOP-14665?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16247614#comment-16247614
 ] 

Hari Sekhon commented on HADOOP-14665:
--------------------------------------

Most of us don't hand edit that file any more in recent years as it's commonly 
done via Ambari but yes I see your point since it is just an xml value field.

I don't think it would be difficult for Hadoop to simply strip hash comments 
out of the value field though.

I might raise this to Ambari project as well but still think it might be better 
done in core as otherwise it won't help people who are on Cloudera or MapR 
which don't use Ambari and it becomes a distribution specific enhancement in 
each vendor's management console in that case.

> Support # hash prefix comment lines in auth_to_local mapping rules
> ------------------------------------------------------------------
>
>                 Key: HADOOP-14665
>                 URL: https://issues.apache.org/jira/browse/HADOOP-14665
>             Project: Hadoop Common
>          Issue Type: Improvement
>    Affects Versions: 2.7.3
>         Environment: HDP 2.6.0 + Kerberos
>            Reporter: Hari Sekhon
>
> Request to add support for # hash prefixed comment lines in Hadoop's 
> auth_to_local mappings rules so I can comment what rules I've added and why 
> inline to the rules like with code (useful when supporting multi-directory 
> mappings).
> It should be fairly easy to implement, just string strip all lines from # to 
> end, trim whitespace and then exclude all blank / whitespace lines, I do this 
> in tools I write all the time.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to