I would like to get the similar output as you can see it in the Cloudera Manager UI Hosts->Roles.
How can I collect all the roles and on which server this role is added from command line?
I can reach
Also I can reach
I have full administrator right on the cluster,but
what is the correct permission level to get these information?
CDH version is 6.3.4 and 6.2.1.
Hello @AndrasV ,
You may get the details using the host API as below:
This would list down the roles that are installed/available on this particular host. To get the host Id, please use the below API:
Let us know if this helps.
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.