You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by ab...@apache.org on 2016/07/12 07:57:34 UTC

ambari git commit: AMBARI-17657 Ambari uses default hdfs user on NNHA wizard. (ababiichuk)

Repository: ambari
Updated Branches:
  refs/heads/trunk d669b9608 -> bafb1ff36


AMBARI-17657 Ambari uses default hdfs user on NNHA wizard. (ababiichuk)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/bafb1ff3
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/bafb1ff3
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/bafb1ff3

Branch: refs/heads/trunk
Commit: bafb1ff36fb1c1af5d4b2790e83c846006143e37
Parents: d669b96
Author: ababiichuk <ab...@hortonworks.com>
Authored: Mon Jul 11 18:28:45 2016 +0300
Committer: ababiichuk <ab...@hortonworks.com>
Committed: Tue Jul 12 10:56:59 2016 +0300

----------------------------------------------------------------------
 .../main/admin/highAvailability/nameNode/wizard_controller.js | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/bafb1ff3/ambari-web/app/controllers/main/admin/highAvailability/nameNode/wizard_controller.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/controllers/main/admin/highAvailability/nameNode/wizard_controller.js b/ambari-web/app/controllers/main/admin/highAvailability/nameNode/wizard_controller.js
index dc37cab..72f9ec2 100644
--- a/ambari-web/app/controllers/main/admin/highAvailability/nameNode/wizard_controller.js
+++ b/ambari-web/app/controllers/main/admin/highAvailability/nameNode/wizard_controller.js
@@ -186,6 +186,10 @@ App.HighAvailabilityWizardController = App.WizardController.extend({
     this.set('content.tasksRequestIds', requestIds);
   },
 
+  loadHdfsUserFromServer: function () {
+    return App.get('router.configurationController').loadFromServer([{'siteName': 'hadoop-env'}]);
+  },
+
   loadMap: {
     '1': [
       {
@@ -201,7 +205,8 @@ App.HighAvailabilityWizardController = App.WizardController.extend({
           if (App.db.getHighAvailabilityWizardHdfsUser()) {
             usersLoadingCallback();
           } else {
-            this.usersLoading().done(function () {
+            this.loadHdfsUserFromServer().done(function (data) {
+              self.set('content.hdfsUser', Em.get(data, '0.properties.hdfs_user'));
               usersLoadingCallback();
             });
           }