Created on 07-26-2020 03:41 AM - edited 07-26-2020 05:33 AM
Is there a way to deploy service client configuration for single host or at least validate that the client configuration was deployed on some host which was decomissioned and now is a candidate for recomissionning?
In the docs i see:
Client configuration files are deployed on any host that is a client for a service—that is, that has a role for the service on that host.
My goal is to deploy client config and then validate that client configuration was deployed on specific host using REST_API.
Created 07-26-2020 05:06 AM
@rok As far as I know there is no way to deploy client config on only one host because Client Configuration is proportional to the that role/service and while deploying the client config it will all host related to that.
That's another scenario where you have a role only deployed on one host only and there you deploy the Configuration then It will touch only one host. If roles are distributed on more than one host than deploying client config on one host (If there could be a way) will fail because of out of sync.
There is no hots specific API call which can do same for you as well.
https://archive.cloudera.com/cm6/6.2.0/generic/jar/cm_api/apidocs/resources.html
Created on 07-30-2020 07:04 AM - edited 07-30-2020 07:05 AM
Currently, the way i'm going to take is mimic deploy client configuration operation on single host:
Auto recreating links using script: /etc/stack/service-env/conf -> /etc/alternatives/service-env-conf -> /etc/stack/service-env/conf.cloudera.service-env and updating or creating client config file /etc/stack/service-env/conf/conf.properties.