02-10-2016 12:30 AM
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):
02-28-2016 08:24 AM
03-10-2016 08:43 PM - edited 03-10-2016 09:02 PM
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?