You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ambari.apache.org by Zhang Ruiqiang <zh...@163.com> on 2016/05/02 15:07:27 UTC
How to add configurations in core-site.xml when install a new
service?
Hi all:
When install Oozie service, new configurations such as 'hadoop.proxyuser.oozie.groups' will be added to core-site.xml. Now, I want to add similar configurations(''hadoop.proxyuser.XXX.groups') when I install a customed service. I checked the code, but I can't find out how to do this.
Can anyone help me?
Regards!
Re: How to add configurations in core-site.xml when install a new service?
Posted by Alexander Denissov <ad...@pivotal.io>.
Also, if you only need this to be done when Kerberos is enabled, you can
specify these properties in your service's kerberos.json, like is done here
for HAWQ:
https://github.com/apache/ambari/blob/trunk/ambari-server/src/main/resources/common-services/HAWQ/2.0.0/kerberos.json#L45-48
When security wizard runs, it will add these properties to core-site.xml.
--
Thanks,
Alex.
On Mon, May 2, 2016 at 10:51 AM, Mithun Mathew <mi...@gmail.com> wrote:
> This code is in stack_advisor:
> https://github.com/apache/ambari/blob/trunk/ambari-server/src/main/resources/stacks/HDP/2.0.6/services/stack_advisor.py#L194-L300
>
> Look for function definitions of recommendHadoopProxyUsers and
> recommendAmbariProxyUsersForHDFS
>
> On Mon, May 2, 2016 at 6:07 AM, Zhang Ruiqiang <zh...@163.com> wrote:
>
>> Hi all:
>> When install Oozie service, new configurations such as
>> 'hadoop.proxyuser.oozie.groups' will be added to core-site.xml. Now, I want
>> to add similar configurations(''hadoop.proxyuser.XXX.groups') when I
>> install a customed service. I checked the code, but I can't find out how to
>> do this.
>> Can anyone help me?
>>
>> Regards!
>>
>>
>>
>>
>
>
>
> --
> *Mithun Mathew* (Matt)
>
> - www.linkedin.com/in/mithunmatt/
>
>
Re: How to add configurations in core-site.xml when install a new service?
Posted by Mithun Mathew <mi...@gmail.com>.
This code is in stack_advisor:
https://github.com/apache/ambari/blob/trunk/ambari-server/src/main/resources/stacks/HDP/2.0.6/services/stack_advisor.py#L194-L300
Look for function definitions of recommendHadoopProxyUsers and
recommendAmbariProxyUsersForHDFS
On Mon, May 2, 2016 at 6:07 AM, Zhang Ruiqiang <zh...@163.com> wrote:
> Hi all:
> When install Oozie service, new configurations such as
> 'hadoop.proxyuser.oozie.groups' will be added to core-site.xml. Now, I want
> to add similar configurations(''hadoop.proxyuser.XXX.groups') when I
> install a customed service. I checked the code, but I can't find out how to
> do this.
> Can anyone help me?
>
> Regards!
>
>
>
>
--
*Mithun Mathew* (Matt)
- www.linkedin.com/in/mithunmatt/