I am currently using the Cloudera Manager API to automatically register hosts into Cloudera Manager while bootstrapping. However, there is a bug I have encountered where hosts that are registered via the API show up twice, once as a live host and once as a dead host. This issue only occurs for Flume hosts.
Here is a screenshot showing the issue (some sensitive info removed):
Here is the code we are using to register a host via the API. This is using CDH 5.4.0 and API version 10.
It's worth noting that one API call produces two hosts; it's easy enough to delete the host that shows up as dead, but I was hoping to figure out the root cause here.
Here is the code:
api.create_host(self.host_id, self.host_name, self.host_ip)
We use AWS for our hosting and the host ID is the AWS instance ID. Any ideas?