This is an automated email from the ASF dual-hosted git repository.

asnaik pushed a commit to branch branch-2.7
in repository https://gitbox.apache.org/repos/asf/ambari.git


The following commit(s) were added to refs/heads/branch-2.7 by this push:
     new 51501aa  AMBARI-25228 add a second HiveServer2Interactive Button 
Missing in Ambari UI is there is config group for Hive Service (asnaik) (#2908)
51501aa is described below

commit 51501aa52cdd8f043e075d45c023099a68cb7ee3
Author: Akhil S Naik <asn...@cloudera.com>
AuthorDate: Fri Apr 5 15:55:33 2019 +0530

    AMBARI-25228 add a second HiveServer2Interactive Button Missing in Ambari 
UI is there is config group for Hive Service (asnaik) (#2908)
---
 .../app/mixins/main/service/configs/hive_interactive_check.js    | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git 
a/ambari-web/app/mixins/main/service/configs/hive_interactive_check.js 
b/ambari-web/app/mixins/main/service/configs/hive_interactive_check.js
index ac785e2..9333f33 100644
--- a/ambari-web/app/mixins/main/service/configs/hive_interactive_check.js
+++ b/ambari-web/app/mixins/main/service/configs/hive_interactive_check.js
@@ -33,6 +33,13 @@ App.HiveInteractiveCheck = Em.Mixin.create({
   },
 
   onLoadHiveConfigs: function (data) {
-    this.set('enableHiveInteractive', 
data.items[0].configurations.findProperty('type', 
'hive-interactive-env').properties['enable_hive_interactive'] === 'true');
+    var enableHiveInteractive = false;
+    data.items.forEach(function(item) {
+        var hiveInteractive = item.configurations.findProperty('type', 
'hive-interactive-env');
+        if(hiveInteractive) {
+          enableHiveInteractive = 
hiveInteractive.properties['enable_hive_interactive'] === 'true';
+        }
+      });
+    this.set('enableHiveInteractive',enableHiveInteractive);
   }
 });
\ No newline at end of file

Reply via email to