Support Questions
Find answers, ask questions, and share your expertise
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Compare settings in different clusters


Compare settings in different clusters

New Contributor


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,



Re: Compare settings in different clusters

New Contributor

Hello Silvan,


I'm having the same issue but I'm trying to look at the python apis ( 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.




Re: Compare settings in different clusters

Hi Mike,

In Cloudera Manager 5.7 there is a new feature called Cluster Templates. It's not expressly designed for diffing, but by the nature of how it works, it will tend to normalize a lot of variance and likely be reasonable for doing a textual diff between two fairly similar clusters.

Export a template from both clusters and diff them.

You can read about it here:


Re: Compare settings in different clusters

New Contributor
Hello Darren,

I did see that but was told it was not clusters managed by different CM's.
But I will definitely give it a shot.


Re: Compare settings in different clusters

Cloudera Employee

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




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.




Don't have an account?
Coming from Hortonworks? Activate your account here