You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by vi...@apache.org on 2018/04/25 06:19:58 UTC
[ambari] branch branch-2.6 updated: AMBARI-21858 Not able to enable
hive Interactive Query (#1068)
This is an automated email from the ASF dual-hosted git repository.
vivekratnavel pushed a commit to branch branch-2.6
in repository https://gitbox.apache.org/repos/asf/ambari.git
The following commit(s) were added to refs/heads/branch-2.6 by this push:
new 4c5ee8a AMBARI-21858 Not able to enable hive Interactive Query (#1068)
4c5ee8a is described below
commit 4c5ee8a3ada99bbc8d67bd46daa28407f2b41f17
Author: Akhil S Naik <as...@hortonworks.com>
AuthorDate: Wed Apr 25 11:49:56 2018 +0530
AMBARI-21858 Not able to enable hive Interactive Query (#1068)
---
.../controllers/wizard/step7/assign_master_controller.js | 14 ++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)
diff --git a/ambari-web/app/controllers/wizard/step7/assign_master_controller.js b/ambari-web/app/controllers/wizard/step7/assign_master_controller.js
index 22bbd8c..584706f 100644
--- a/ambari-web/app/controllers/wizard/step7/assign_master_controller.js
+++ b/ambari-web/app/controllers/wizard/step7/assign_master_controller.js
@@ -109,12 +109,14 @@ App.AssignMasterOnStep7Controller = Em.Controller.extend(App.BlueprintMixin, App
var showAlert = false;
if (data.hasOwnProperty('items') && data.items.length > 0) {
data.items.forEach( function(_item) {
- _item.RequestSchedule.batch.batch_requests.forEach( function(batchRequest) {
- // Check if a DELETE request on HIVE_SERVER_INTERACTIVE is in progress
- if (batchRequest.request_type == "DELETE" && batchRequest.request_uri.indexOf("HIVE_SERVER_INTERACTIVE") > -1) {
- showAlert = true;
- }
- });
+ if (_item && _item.RequestSchedule && _item.RequestSchedule.batch && _item.RequestSchedule.batch.batch_requests) {
+ _item.RequestSchedule.batch.batch_requests.forEach(function (batchRequest) {
+ // Check if a DELETE request on HIVE_SERVER_INTERACTIVE is in progress
+ if (batchRequest.request_type == "DELETE" && batchRequest.request_uri.indexOf("HIVE_SERVER_INTERACTIVE") > -1) {
+ showAlert = true;
+ }
+ });
+ }
});
}
if (showAlert) {
--
To stop receiving notification emails like this one, please contact
vivekratnavel@apache.org.