Repository: ambari
Updated Branches:
  refs/heads/trunk b1add6e16 -> aa16e8da2


AMBARI-12422. Hive queries against HiveServer2 failing in Hive HA enabled 
cluster (alexantonenko)


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

Branch: refs/heads/trunk
Commit: aa16e8da2ce27bc513469f530e32d33b65b56f2c
Parents: 0cb2f9b
Author: Alex Antonenko <hiv...@gmail.com>
Authored: Tue Jul 21 12:41:50 2015 +0300
Committer: Alex Antonenko <hiv...@gmail.com>
Committed: Tue Jul 21 12:57:35 2015 +0300

----------------------------------------------------------------------
 ambari-web/app/controllers/main/host/details.js | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/aa16e8da/ambari-web/app/controllers/main/host/details.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/controllers/main/host/details.js 
b/ambari-web/app/controllers/main/host/details.js
index 8f97044..c3a17ca 100644
--- a/ambari-web/app/controllers/main/host/details.js
+++ b/ambari-web/app/controllers/main/host/details.js
@@ -39,6 +39,12 @@ App.MainHostDetailsController = Em.Controller.extend({
   isFromHosts: false,
 
   /**
+   * Are we adding hive server2 component
+   * @type {bool}
+   */
+  addHiveServer: false,
+
+  /**
    * path to page visited before
    * @type {string}
    */
@@ -628,6 +634,7 @@ App.MainHostDetailsController = Em.Controller.extend({
       var self = this;
       
this.removeObserver('App.router.backgroundOperationsController.serviceTimestamp',
 this, this.checkHiveDone);
       setTimeout(function () {
+        self.set('addHiveServer', true);
         self.loadConfigs("loadHiveConfigs");
       }, App.get('componentsUpdateInterval'));
     }
@@ -800,7 +807,8 @@ App.MainHostDetailsController = Em.Controller.extend({
         }
       }
     ];
-    this.saveConfigsBatch(groups, 'HIVE_METASTORE', hiveMetastoreHost);
+    this.saveConfigsBatch(groups, this.get('addHiveServer') ? 'HIVE_SERVER' : 
'HIVE_METASTORE', hiveMetastoreHost);
+    this.set('addHiveServer', false);
   },
 
   /**

Reply via email to