ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alejandro Fernandez <afernan...@hortonworks.com>
Subject Re: New service user for custom service
Date Wed, 15 Feb 2017 21:08:42 GMT
HI Sandeep, you can generate a config-type to store the user but not
actually save the config file to the local file system.

Thanks,
Alejandro

On 2/15/17, 6:57 AM, "Sandeep G" <sandeepbits.g@gmail.com> wrote:

>Thanks for the reply Janne
>
>I have tried out even that route of adding one xml file in the
>configuration folder and the USER property that you mentioned in the file.
>
>But the framework is throwing an exception when it is setting empty
>configs
>as there are no other configs apart from the USER property in the xml
>file.
>So trying to figure out if there is any other place where we can configure
>this USER property
>
>
>On Wed, 15 Feb 2017 at 20:01, Janne Valkealahti
><janne.valkealahti@gmail.com>
>wrote:
>
>Afaik you need to add that configuration you mentioned. That's something
>I'm doing[1] in Spring Cloud Dataflow plugin for ambari. Then if you're
>executing a process you need to reference[2] that user. I think I also
>ripped this out from how zk service was done. I think a way it works is
>if property-type is USER then that instructs ambari to actually create
>that
>user.
>
>[1]
>https://github.com/spring-cloud/spring-cloud-dataflow-ambari-rpm/blob/mast
>er/src/main/resources/services/SCDF/configuration/scdf-server-env.xml#L25
>[2]
>https://github.com/spring-cloud/spring-cloud-dataflow-ambari-rpm/blob/mast
>er/src/main/resources/services/SCDF/package/scripts/scdf_service.py#L47
>
>On Wed, Feb 15, 2017 at 12:34 PM, Sandeep G <sandeepbits.g@gmail.com>
>wrote:
>
>> Hi
>> We are adding a new custom service in our Ambari stack and would like to
>> run the service as a new service user. I have seen that for services
>>like
>> Zookeeper, the zookeeper user is configured in zookeeper-env.xml which
>> would show up in the configuration recommendations page in UI and Ambari
>> would create the user if not already present.
>>
>> However for the new service that we are adding, there is no
>>configuration
>> folder as there are no configs for this service. Can you please guide me
>on
>> where to configure this new user so that it shows up in configuration
>> recommendation page ?
>>
>> Thanks
>> --Sandeep
>>


Mime
View raw message