This is an automated email from the ASF dual-hosted git repository.
vivekratnavel pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ambari.git
The following commit(s) were added to refs/heads/trunk by this push:
new eecb012 AMBARI-21858 Not able to enable hive Interactive Query
(asnaik) (#1067)
eecb012 is described below
commit eecb012d618fb2865977cfff385be6218f633b17
Author: Akhil S Naik <[email protected]>
AuthorDate: Wed Apr 25 11:49:17 2018 +0530
AMBARI-21858 Not able to enable hive Interactive Query (asnaik) (#1067)
---
.../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 f94025e..6d5b46d 100644
--- a/ambari-web/app/controllers/wizard/step7/assign_master_controller.js
+++ b/ambari-web/app/controllers/wizard/step7/assign_master_controller.js
@@ -127,12 +127,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;
+ }
+ });
+ }
});
}
return showAlert;
--
To stop receiving notification emails like this one, please contact
[email protected].