Reply
Highlighted
New Contributor
Posts: 1
Registered: ‎02-17-2019

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

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

Posts: 1,825
Kudos: 406
Solutions: 292
Registered: ‎07-31-2013

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

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
Announcements