Support Questions
Find answers, ask questions, and share your expertise

Running a CSD as a particular user while using a single-user-mode

New Contributor

As per this page: http://www.cloudera.com/documentation/enterprise/latest/topics/install_singleuser_reqts.html, "the Cloudera Manager Agent and all the processes run by services managed by Cloudera Manager are started as a single configured user and group".

 

So in this case, if I have configured my Parcel/CSD using runAs (https://github.com/cloudera/cm_ext/wiki/Service-Descriptor-Language-Reference#runas), what happens if I am using single-user-mode? Does that override the individual service settings for runAs?

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Running a CSD as a particular user while using a single-user-mode

When using Single User Mode, all processes are always launched as that single user, and the process user and group settings are ignored.

View solution in original post

5 REPLIES 5

Re: Running a CSD as a particular user while using a single-user-mode

When using Single User Mode, all processes are always launched as that single user, and the process user and group settings are ignored.

View solution in original post

Re: Running a CSD as a particular user while using a single-user-mode

New Contributor

Is there a way to propagate this single-user-mode setting through a parcel or a csd? I couldn't find anything specific in the documentation so probably not.

Re: Running a CSD as a particular user while using a single-user-mode

I don't think there's a way to detect it right now. You can only see what user you're configured to run as (which will be the single user when in single-user-mode).

May I ask why you'd like to detect this?

Re: Running a CSD as a particular user while using a single-user-mode

New Contributor

I meant to ask if there is a way to enable this setting through a parcel or csd. But since there is so much configuration required, I guess not.

I am just looking at different options while creating the installer!

Re: Running a CSD as a particular user while using a single-user-mode

I see. Single User Mode is a CM server setting. There's no way for a CSD or Parcel to change a CM server setting, but it can be set via the REST API. If you are wrapping the CM installation and want to turn on single user mode, you can also make that REST call, but keep in mind there's quite a few other things you'd need to handle as discussed in the documentation you already linked (http://www.cloudera.com/documentation/enterprise/latest/topics/install_singleuser_reqts.html).