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

1 REPLY 1

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: https://archive.cloudera.com/cm6/6.1.0/generic/jar/cm_api/swagger-html-sdk-docs/python/docs/HostsRes...

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.