Created on 11-04-2015 01:16 AM - edited 09-16-2022 02:47 AM
Hi,
we have multiple clusters which are managed by different instances of Cloudera Manager. It would be helpful to compare the complete configuration from the different cluster, i.e. to find out how the monitoring tresholds of service X is set in cluster A and cluster B.
I have already managed to receive the complete JSON config (api/v10/cm/deployment), but it does not help much to compare them (even with a specific JSON comparison tool), because it really is a complex file.
Does anyone has a good idea or some experience for this scenario?
Thanks a lot,
Silvan
Created 10-17-2019 10:00 PM
Hi All,
Unfortunately, other than CM API there is no feature in CM itself to compare the cluster configuration with other cluster managed by another CM instance.
In another case if you want compare the configuration settings for a particular service between two different clusters managed by same CM instance, you can do as per the steps given in the documentation here [1].
I suggest to go with CM CPI solution. You can use the CM API [2] to retrieve the full cluster configuration in JSON format including all hosts, clusters, services, roles, users, settings, etc. and use third party text compare tools like this [3] to compare them as text. It will highlight the difference in yellow. Another way is using diff command line.
e.g. CM API example for getting full cluster configuration in browser in JSON format
http://<your_cm_hostname>:7180/api/v12/cm/deployment
Get the full cluster configuration using the API from both the CM servers and put them into the text comparator.
I hope this will help.
Regards,
Salim
[1]
https://docs.cloudera.com/documentation/enterprise/5-13-x/topics/admin_compare_service_config_across...
[2] https://cloudera.github.io/cm_api/apidocs/v12/path__cm_deployment.html
[3] http://iblogbox.com/devtools/diff/
Created 06-27-2016 06:50 PM
Hello Silvan,
I'm having the same issue but I'm trying to look at the python apis (https://cloudera.github.io/cm_api/docs/python-client/) to get the configs.
But this is not easy. I was wondering if you had any luck finding a solution.
Let me know if you can.
Thanks,
Created 06-28-2016 01:07 PM
Created 06-28-2016 01:11 PM
Created 10-17-2019 10:00 PM
Hi All,
Unfortunately, other than CM API there is no feature in CM itself to compare the cluster configuration with other cluster managed by another CM instance.
In another case if you want compare the configuration settings for a particular service between two different clusters managed by same CM instance, you can do as per the steps given in the documentation here [1].
I suggest to go with CM CPI solution. You can use the CM API [2] to retrieve the full cluster configuration in JSON format including all hosts, clusters, services, roles, users, settings, etc. and use third party text compare tools like this [3] to compare them as text. It will highlight the difference in yellow. Another way is using diff command line.
e.g. CM API example for getting full cluster configuration in browser in JSON format
http://<your_cm_hostname>:7180/api/v12/cm/deployment
Get the full cluster configuration using the API from both the CM servers and put them into the text comparator.
I hope this will help.
Regards,
Salim
[1]
https://docs.cloudera.com/documentation/enterprise/5-13-x/topics/admin_compare_service_config_across...
[2] https://cloudera.github.io/cm_api/apidocs/v12/path__cm_deployment.html
[3] http://iblogbox.com/devtools/diff/