- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Collecting roles from command line
- Labels:
-
Cloudera Manager
Created ‎05-12-2021 06:39 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
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
https://hostname:7183/api/v32/clusters/clustername/
Also I can reach
https://hostname:7183/api/v32/clusters/clustername/services/servicename
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.
Thanks,
András
Created on ‎05-17-2021 02:41 AM - edited ‎05-17-2021 02:44 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Cheers!
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.
