You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by sr...@apache.org on 2013/06/07 03:14:19 UTC

svn commit: r1490485 - /incubator/ambari/branches/branch-1.4.0/ambari-web/app/controllers/wizard/step8_controller.js

Author: srimanth
Date: Fri Jun  7 01:14:18 2013
New Revision: 1490485

URL: http://svn.apache.org/r1490485
Log:
AMBARI-2309. Revert Hadoop2 check for empty 'dfs.hosts' and 'dfs.hosts.exclude' properties. (srimanth)

Modified:
    incubator/ambari/branches/branch-1.4.0/ambari-web/app/controllers/wizard/step8_controller.js

Modified: incubator/ambari/branches/branch-1.4.0/ambari-web/app/controllers/wizard/step8_controller.js
URL: http://svn.apache.org/viewvc/incubator/ambari/branches/branch-1.4.0/ambari-web/app/controllers/wizard/step8_controller.js?rev=1490485&r1=1490484&r2=1490485&view=diff
==============================================================================
--- incubator/ambari/branches/branch-1.4.0/ambari-web/app/controllers/wizard/step8_controller.js (original)
+++ incubator/ambari/branches/branch-1.4.0/ambari-web/app/controllers/wizard/step8_controller.js Fri Jun  7 01:14:18 2013
@@ -1376,16 +1376,6 @@ App.WizardStep8Controller = Em.Controlle
     var hdfsSiteObj = this.get('configs').filterProperty('filename', 'hdfs-site.xml');
     var hdfsProperties = {};
     hdfsSiteObj.forEach(function (_configProperty) {
-
-      if (stringUtils.compareVersions(App.get('currentStackVersionNumber'), '2.0.0') === 1 ||
-          stringUtils.compareVersions(App.get('currentStackVersionNumber'), '2.0.0') === 0) {
-        // TODO Remove temporary hack. This was added to not set
-        // dfs.hosts and dfs.hosts.exclude properties on HDP 2 stacks.
-        if ("dfs.hosts"==_configProperty.name || "dfs.hosts.exclude"==_configProperty.name) {
-          _configProperty.value = "";
-        }
-      }
-
       hdfsProperties[_configProperty.name] = _configProperty.value;
       this._recordHostOverrideFromObj(_configProperty, 'hdfs-site', 'version1', this);
       console.log("STEP*: name of the property is: " + _configProperty.name);