[ 
https://issues.apache.org/jira/browse/AMBARI-8853?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Robert Levas updated AMBARI-8853:
---------------------------------
    Attachment: AMBARI-8853_01.patch

Updated to replace variables in configuration key names.

Patch File [^AMBARI-8853_01.patch]

> Configuration keys in Kerberos descriptors should allow for variable 
> replacement
> --------------------------------------------------------------------------------
>
>                 Key: AMBARI-8853
>                 URL: https://issues.apache.org/jira/browse/AMBARI-8853
>             Project: Ambari
>          Issue Type: Task
>          Components: ambari-server
>    Affects Versions: 2.0.0
>            Reporter: Robert Levas
>            Assignee: Robert Levas
>              Labels: kerberos, kerberos_descriptor
>             Fix For: 2.0.0
>
>         Attachments: AMBARI-8853_01.patch
>
>
> Configuration keys in Kerberos descriptors should allow for variable 
> replacement. For example a typical {{configurations}} block may look like 
> {code}
> "configurations" : [
>  "core-site": {
>      "hadoop.proxyuser.hive.groups":"${hadoop-env/proxyuser_group}"
>    },
>   "hive-site": {
>    .....
>   },
>   "webhcat-site": {
>   ....
>  }
> ]
> {code}
> However some configuration keys need to be dynamically generated and should 
> be generated using the existing variable replacement feature in 
> {{org.apache.ambari.server.state.kerberos.AbstractKerberosDescriptor}}.  For 
> example: 
> {code}
> "configurations": [
>   "core-site": {
>      
> "hadoop.proxyuser.${hive-env/hive_user}.groups":"${hadoop-env/proxyuser_group}"
>    },
>   "hive-site": {
>    .....
>   },
>   "webhcat-site": {
>   ....
>  }
> ] 
> {code}
> The configuration key {{hadoop.proxyuser.$\{hive-env/hive_user\}.groups}} 
> should be processed such that _$\{hive-env/hive_user\}_ is replaced some 
> value like {{hive}} to yield  {{hadoop.proxyuser.hive.groups}} 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to