Skip to main content
grlzz
Gold ⭐️
March 10, 2022
Question

add workload user as host user

hi,

 

 

is it possible to  add workload user as host user ? 

 

(just need it for rstudio server)

 

thanks

12 replies

shehbazk
Gold ⭐️⭐️
Gold ⭐️⭐️
March 10, 2022

Hello @grlzz,

 

You can refer to the below doc[1] to understand the CDP user accounts. Please have a look into it and let us know if you have further queries.

 

doc[1]: Understanding CDP user accounts

 

Thanks.

 

 

Translate
Azhar_Shaikh1
Gold ⭐️
Gold ⭐️
March 10, 2022

Hello @grlzz 

 

the worload user have the access to the instances in the environment. 

 

refer to https://docs.cloudera.com/management-console/cloud/user-management/topics/mc-create-machine-user.html

 

the documentation will help you to create a machine user. 

 

If you found this response assisted with your query, please take a moment to login and click on "Accept as Solution" below this post.

Translate
grlzz
grlzzAuthor
Gold ⭐️
March 10, 2022

Hi @shehbazk  @Azhar_Shaikh1 ,

 

thanks , but maybe I was not clear

 

Rstudio needs a user on the host, in other words , the ones on

/etc/passwd

 

which right now,  it contains  neither workload nor  machine users (we have already a machine user)

 

the question whether is possible to add one of an existing user to the host (as in /etc/passwd) 

 

thanks 

Translate
grlzz
grlzzAuthor
Gold ⭐️
March 10, 2022

when I try 

sudo passw [any_exisiting_user]

 

I get this error:

Password reset by root is not supported.

 

and the workload passw is not accepted by Rstudio, I guess because it looks up for passw in /etc/passwd 

 

any idea ?

 

thanks

Translate
grlzz
grlzzAuthor
Gold ⭐️
March 10, 2022
Azhar_Shaikh1
Gold ⭐️
Gold ⭐️
March 14, 2022

Hello @grlzz 

Thanks for sharing your findings with us. I understand Rstudio needs a user on the host (and it should be present under /etc/passwd (where all the local users belongs to))


You can create and add local user on the host as workaround, but If the node where you added the user is repaired or restarted it will loose the user from /etc/passwd that you have recently added and you will need to add it again. Cloudbreak will use the predefined images and steps and as the user will be through manual creation It will not consider the added user Incase of node reboot/repair.

 

Was your question answered? Make sure to mark the answer as the accepted solution.
If you find a reply useful, say thanks by clicking on the thumbs up button.

 

Thanks,

Azhar

Translate
grlzz
grlzzAuthor
Gold ⭐️
March 14, 2022
Hi Azhar,
 
thanks -- yeah, I had already used that workaround, but as I have issues with packages installation on that 'host' user's home, I still wanted to know if is possible to add the workload user on the host (namely, on etc/passwd)
 
 
Thanks,
Gianrocco
 
ps: start/stop does not delete the user on /etc/passwd  (terminate/repair the host yes, it will)
Translate
Azhar_Shaikh1
Gold ⭐️
Gold ⭐️
March 17, 2022

Hello @grlzz 

 

It would be great if you can open a support case for this, we will need to investigate on this and see the options available to implement this. 

 

Was your question answered? Make sure to mark the answer as the accepted solution.
If you find a reply useful, say thanks by clicking on the thumbs up button.

Translate
grlzz
grlzzAuthor
Gold ⭐️
March 23, 2022

ok thanks -- I have created one with the same title

Translate
Azhar_Shaikh1
Gold ⭐️
Gold ⭐️
March 23, 2022

Thanks @grlzz 

 

Was your question answered on cloudera  community portal ? Make sure to mark the answer as the accepted solution.
If you find a reply useful, say thanks by clicking on the thumbs up button.

Translate
grlzz
grlzzAuthor
Gold ⭐️
March 23, 2022

hi  @Azhar_Shaikh1 

 

no, I don't think so

Translate
Azhar_Shaikh1
Gold ⭐️
Gold ⭐️
April 13, 2022

Hello Please refer to https://community.cloudera.com/t5/Community-Articles/Using-RStudio-as-an-Editor-with-ML-Runtimes/ta-p/325166

Was your question answered on cloudera  community portal ? Make sure to mark the answer as the accepted solution.
If you find a reply useful, say thanks by clicking on the thumbs up button.

Translate