You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by is...@apache.org on 2018/08/10 18:19:31 UTC

[ambari] 01/06: AMBARI-24246. Ambari does not pick the existing hive database from the jdbc url set

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

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

commit e0af328c569ca6c6aa3d54e787badc06a96b5930
Author: Alex Antonenko <aa...@hortonworks.com>
AuthorDate: Thu Jul 5 12:17:44 2018 +0300

    AMBARI-24246. Ambari does not pick the existing hive database from the jdbc url set
---
 ambari-web/app/views/common/controls_view.js | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/ambari-web/app/views/common/controls_view.js b/ambari-web/app/views/common/controls_view.js
index 50b4d63..b41026b 100644
--- a/ambari-web/app/views/common/controls_view.js
+++ b/ambari-web/app/views/common/controls_view.js
@@ -114,6 +114,13 @@ App.SupportsDependentConfigs = Ember.Mixin.create({
       }
     }
 
+    //Fix required by QA (Ambari does not pick the existing hive database from the jdbc url set)
+    if (['oozie.service.JPAService.jdbc.url__oozie-site', 'javax.jdo.option.ConnectionURL__hive-site'].contains(config.get('id'))) {
+      controller.set('recommendationsInProgress', true);
+      controller.runServerSideValidation().done(function () {
+        controller.set('recommendationsInProgress', false)
+      });
+    }
     return $.Deferred().resolve().promise();
   },