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

can't delete bad node from the cluster using python module in cloudera

New Contributor

i am trying to remove the bad node from the cluster using the python module...but not able to do it. If anyone has solution please share


Master Guru
If the 'bad node' in question has no running agent and has no roles assigned to it, then this API call will help:

Otherwise the process, via APIs, is this:

- Decommission the host and wait for decommission to complete (alternatively, when applicable, just stop all roles on host directly)
- Delete each of the stopped roles that exist on the host from CM API by listing all service roles and filtering by the host reference data in each role
- Use direct/indirect SSH scripting to stop the CM agent process on the host (this is outside of CM API control)
- Delete the host from CM API
Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.