Repository: ambari Updated Branches: refs/heads/branch-2.1 8b2186937 -> 0053a9ac2
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/0053a9ac Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/0053a9ac Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/0053a9ac Branch: refs/heads/branch-2.1 Commit: 0053a9ac2de7f264293728d83476d9f36f965db1 Parents: 8b21869 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:55:29 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/0053a9ac/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 527d07e..93ecf25 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} */ @@ -636,6 +642,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')); } @@ -793,7 +800,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); }, /**