<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Comparing Clusters' configurations in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Comparing-Clusters-configurations/m-p/116903#M79693</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2369/greenhorntechie.html" nodeid="2369"&gt;@Greenhorn Techie&lt;/A&gt; I used Ambari Blueprints, Node.js and &lt;A href="https://github.com/flitbit/diff"&gt;deep-diff&lt;/A&gt; to compare the configurations for two different clusters.  The blueprints were loaded into Node.js and deep-diff did a nice job of finding the true differences in the JSON objects.  The HOSTGROUP definitions in the blueprints created a fair number of red herrings but the other diff objects were dead on.&lt;/P&gt;&lt;P&gt;Assuming you can install Node.js, the deep-diff module and extract the blueprints (I know. A big assumption) you can use the following Node.js commands to generate a JSON file with the cluster differences.&lt;/P&gt;&lt;PRE&gt;var myCallback = function(err) {
if(err) {
return console.log(err);
}
console.log("The file was saved.");
}; 
var diff = require('deep-diff').diff;
var bpa = require('/path/to/blueprints/blue-print-a.json'); 
var bpb = require('/path/to/blueprints/blue-print-b.json'); 
var difference = diff(bpa,bpb); 
fs.writeFile('cluster-difference.json', JSON.stringify(difference, null, 99), myCallback);&lt;/PRE&gt;</description>
    <pubDate>Wed, 27 Apr 2016 21:32:44 GMT</pubDate>
    <dc:creator>TerryP</dc:creator>
    <dc:date>2016-04-27T21:32:44Z</dc:date>
    <item>
      <title>Comparing Clusters' configurations</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Comparing-Clusters-configurations/m-p/116897#M79687</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Just wondering what is the best way to compare configurations for two clusters? Is there any feature available on Ambari UI to do the same? At present I think Ambari cannot support managing multiple clusters. So not sure if this would be possible at all.&lt;/P&gt;&lt;P&gt;Is exporting the cluster configurations as blueprints and then comparing them manually, the only option available? Or are there any better ways to do the same?&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2016 16:07:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Comparing-Clusters-configurations/m-p/116897#M79687</guid>
      <dc:creator>techiegreenhorn</dc:creator>
      <dc:date>2016-04-26T16:07:19Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing Clusters' configurations</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Comparing-Clusters-configurations/m-p/116898#M79688</link>
      <description>&lt;P&gt;one way to  compare configs for 2 different cluster is to get the current configurations for both the cluster using rest api and use some customized scripts to parsers the output. &lt;/P&gt;&lt;P&gt;&lt;A href="https://cwiki.apache.org/confluence/display/AMBARI/Modify+configurations" target="_blank"&gt;https://cwiki.apache.org/confluence/display/AMBARI/Modify+configurations&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2016 16:12:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Comparing-Clusters-configurations/m-p/116898#M79688</guid>
      <dc:creator>pankaj_singh</dc:creator>
      <dc:date>2016-04-26T16:12:38Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing Clusters' configurations</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Comparing-Clusters-configurations/m-p/116899#M79689</link>
      <description>&lt;P&gt;Hi, if you just want to compare HDP components configurations you can use a simple shell script to export all configurations on each cluster and vimdiff the 2 files.&lt;/P&gt;&lt;P&gt;I made a very simple script to achieve that, feel free to use/update&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="https://github.com/laurentedel/hadoop-scripts/blob/master/backup_configs.sh"&gt;https://github.com/laurentedel/hadoop-scripts/blob/master/backup_configs.sh&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2016 16:18:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Comparing-Clusters-configurations/m-p/116899#M79689</guid>
      <dc:creator>ledel</dc:creator>
      <dc:date>2016-04-26T16:18:16Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing Clusters' configurations</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Comparing-Clusters-configurations/m-p/116900#M79690</link>
      <description>&lt;P&gt;You can also download client configs from UI and run diff on each configuration. &lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2016 16:36:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Comparing-Clusters-configurations/m-p/116900#M79690</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-04-26T16:36:31Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing Clusters' configurations</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Comparing-Clusters-configurations/m-p/116901#M79691</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/393/aervits.html" nodeid="393"&gt;@Artem Ervits&lt;/A&gt;, but would this be for one cluster itself rather than comparison across clusters? Not sure if there is a better way than to get cluster configuration from Ambari REST APIs separately for each of them and then do a manual comparison?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2016 17:56:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Comparing-Clusters-configurations/m-p/116901#M79691</guid>
      <dc:creator>techiegreenhorn</dc:creator>
      <dc:date>2016-04-26T17:56:32Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing Clusters' configurations</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Comparing-Clusters-configurations/m-p/116902#M79692</link>
      <description>&lt;P&gt;You have to get configs for both clusters&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2016 18:29:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Comparing-Clusters-configurations/m-p/116902#M79692</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-04-26T18:29:04Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing Clusters' configurations</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Comparing-Clusters-configurations/m-p/116903#M79693</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2369/greenhorntechie.html" nodeid="2369"&gt;@Greenhorn Techie&lt;/A&gt; I used Ambari Blueprints, Node.js and &lt;A href="https://github.com/flitbit/diff"&gt;deep-diff&lt;/A&gt; to compare the configurations for two different clusters.  The blueprints were loaded into Node.js and deep-diff did a nice job of finding the true differences in the JSON objects.  The HOSTGROUP definitions in the blueprints created a fair number of red herrings but the other diff objects were dead on.&lt;/P&gt;&lt;P&gt;Assuming you can install Node.js, the deep-diff module and extract the blueprints (I know. A big assumption) you can use the following Node.js commands to generate a JSON file with the cluster differences.&lt;/P&gt;&lt;PRE&gt;var myCallback = function(err) {
if(err) {
return console.log(err);
}
console.log("The file was saved.");
}; 
var diff = require('deep-diff').diff;
var bpa = require('/path/to/blueprints/blue-print-a.json'); 
var bpb = require('/path/to/blueprints/blue-print-b.json'); 
var difference = diff(bpa,bpb); 
fs.writeFile('cluster-difference.json', JSON.stringify(difference, null, 99), myCallback);&lt;/PRE&gt;</description>
      <pubDate>Wed, 27 Apr 2016 21:32:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Comparing-Clusters-configurations/m-p/116903#M79693</guid>
      <dc:creator>TerryP</dc:creator>
      <dc:date>2016-04-27T21:32:44Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing Clusters' configurations</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Comparing-Clusters-configurations/m-p/116904#M79694</link>
      <description>&lt;P&gt;I wanted to offer another comparison tool option.  After downloading configs, you might consider using a graphical tool like meld. It does a very nice job of file and directory comparison and merges. It will not only point out line differences but highlight character differences. Check out the images on their home page to know what to expect: &lt;A href="http://http://meldmerge.org" target="_blank"&gt;http://http://meldmerge.org&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If you're doing a shell comparison using diff, try the -y option for a side-by-side diff. And there is a recursive option -r to compare directories. diff -ry &amp;lt;dirA&amp;gt; &amp;lt;dirB&amp;gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2016 20:31:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Comparing-Clusters-configurations/m-p/116904#M79694</guid>
      <dc:creator>james_jones</dc:creator>
      <dc:date>2016-04-28T20:31:32Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing Clusters' configurations</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Comparing-Clusters-configurations/m-p/116905#M79695</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2229/jamesjones.html" nodeid="2229"&gt;@james.jones&lt;/A&gt; Thanks James. I shall look into meld. Seems interesting.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2016 01:42:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Comparing-Clusters-configurations/m-p/116905#M79695</guid>
      <dc:creator>techiegreenhorn</dc:creator>
      <dc:date>2016-04-29T01:42:23Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing Clusters' configurations</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Comparing-Clusters-configurations/m-p/116906#M79696</link>
      <description>&lt;P&gt;Another utility which it helps to compare the Hadoop ecosystem configurations for two or more clusters. It uses Curl request for retrieving the service configuration from Ambari &lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/karthikhw/ambari" target="_blank"&gt;https://github.com/karthikhw/ambari&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/karthikhw/ambari/blob/master/bin/compare.sh" target="_blank"&gt;https://github.com/karthikhw/ambari/blob/master/bin/compare.sh&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Note : Run it in ambari server&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/6819-compare-sh-screenshot.jpg"&gt;compare-sh-screenshot.jpg&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Sat, 20 Aug 2016 00:00:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Comparing-Clusters-configurations/m-p/116906#M79696</guid>
      <dc:creator>kpalanisamy</dc:creator>
      <dc:date>2016-08-20T00:00:29Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing Clusters' configurations</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Comparing-Clusters-configurations/m-p/116907#M79697</link>
      <description>&lt;P&gt;The below script helps to compare the configs.&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Symantec/config-compare" target="_blank"&gt;https://github.com/Symantec/config-compare&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2016 05:27:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Comparing-Clusters-configurations/m-p/116907#M79697</guid>
      <dc:creator>Narendra_Bidari</dc:creator>
      <dc:date>2016-09-21T05:27:13Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing Clusters' configurations</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Comparing-Clusters-configurations/m-p/116908#M79698</link>
      <description>&lt;P&gt;This is a pretty useful tool.  You can compare the entire Ambari blueprints and it generates a tab delimited report of the the differences and similarities between two or more clusters.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2016 02:52:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Comparing-Clusters-configurations/m-p/116908#M79698</guid>
      <dc:creator>dale_rodel1</dc:creator>
      <dc:date>2016-09-22T02:52:46Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing Clusters' configurations</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Comparing-Clusters-configurations/m-p/116909#M79699</link>
      <description>&lt;P&gt;If you are still seeking a solution you could use Orcaconfig to compare dumped XMLs. &lt;A href="https://www.orcaconfig.com/compare-configurations/"&gt;https://www.orcaconfig.com/compare-configurations/&lt;/A&gt;. It's designed to automatically compare configurations in complex environments. Hope this helps you. (yep I work there)&lt;/P&gt;</description>
      <pubDate>Sat, 28 Jan 2017 00:50:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Comparing-Clusters-configurations/m-p/116909#M79699</guid>
      <dc:creator>sturner</dc:creator>
      <dc:date>2017-01-28T00:50:07Z</dc:date>
    </item>
  </channel>
</rss>

