You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by wu...@apache.org on 2022/11/08 18:35:23 UTC
[ambari] branch trunk updated: AMBARI-25227: Unable to move Hive metastore from one node to another (#3437)
This is an automated email from the ASF dual-hosted git repository.
wuzhiguo 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 15b27258cd AMBARI-25227: Unable to move Hive metastore from one node to another (#3437)
15b27258cd is described below
commit 15b27258cd7dcb3fcba81216a45f7fb4e9018103
Author: Zhiguo Wu <wu...@apache.org>
AuthorDate: Wed Nov 9 02:35:17 2022 +0800
AMBARI-25227: Unable to move Hive metastore from one node to another (#3437)
---
.../main/service/reassign/step1_controller.js | 8 ++---
.../main/service/reassign/step4_controller.js | 37 ++--------------------
2 files changed, 6 insertions(+), 39 deletions(-)
diff --git a/ambari-web/app/controllers/main/service/reassign/step1_controller.js b/ambari-web/app/controllers/main/service/reassign/step1_controller.js
index 12d77d3f2e..02eafa5fb2 100644
--- a/ambari-web/app/controllers/main/service/reassign/step1_controller.js
+++ b/ambari-web/app/controllers/main/service/reassign/step1_controller.js
@@ -27,12 +27,12 @@ App.ReassignMasterWizardStep1Controller = Em.Controller.extend({
*/
dbPropertyMap: {
'HIVE_SERVER': {
- type: 'hive-site',
- name: 'javax.jdo.option.ConnectionDriverName'
+ type: 'hive-env',
+ name: 'hive_database_type'
},
'HIVE_METASTORE': {
- type: 'hive-site',
- name: 'javax.jdo.option.ConnectionDriverName'
+ type: 'hive-env',
+ name: 'hive_database_type'
},
'OOZIE_SERVER': {
type: 'oozie-site',
diff --git a/ambari-web/app/controllers/main/service/reassign/step4_controller.js b/ambari-web/app/controllers/main/service/reassign/step4_controller.js
index b95e206b45..474a327579 100644
--- a/ambari-web/app/controllers/main/service/reassign/step4_controller.js
+++ b/ambari-web/app/controllers/main/service/reassign/step4_controller.js
@@ -72,21 +72,6 @@ App.ReassignMasterWizardStep4Controller = App.HighAvailabilityProgressPageContro
dependentHostComponents: [],
- dbPropertyMap: {
- 'HIVE_SERVER': {
- type: 'hive-site',
- name: 'javax.jdo.option.ConnectionDriverName'
- },
- 'HIVE_METASTORE': {
- type: 'hive-site',
- name: 'javax.jdo.option.ConnectionDriverName'
- },
- 'OOZIE_SERVER': {
- type: 'oozie-site',
- name: 'oozie.service.JPAService.jdbc.url'
- }
- },
-
/**
* load step info
*/
@@ -659,30 +644,12 @@ App.ReassignMasterWizardStep4Controller = App.HighAvailabilityProgressPageContro
return propertiesMap[this.get('content.reassign.service_id')];
}.property(),
- dbType: function() {
- var databaseTypes = /MySQL|PostgreS|Oracle|Derby|MSSQL|Anywhere/gi,
- dbPropertyMapItem = Em.getWithDefault(this.get('dbPropertyMap'), this.get('content.reassign.component_name'), null),
- databasePropMatch,
- databaseProp,
- result;
-
- if (dbPropertyMapItem) {
- databaseProp = Em.getWithDefault(this.get('content.configs'), dbPropertyMapItem.type, {})[dbPropertyMapItem.name];
- databasePropMatch = databaseProp && databaseProp.match(databaseTypes);
- if (databasePropMatch) {
- result = databasePropMatch[0];
- }
- }
-
- return result;
- }.property(),
-
prepareDBCheckAction: function() {
var params = this.get('preparedDBProperties');
var ambariProperties = App.router.get('clusterController.ambariProperties');
- params['db_name'] = this.get('dbType');
+ params['db_name'] = this.get('content.databaseType');
params['jdk_location'] = ambariProperties['jdk_location'];
params['jdk_name'] = ambariProperties['jdk.name'];
params['java_home'] = ambariProperties['java.home'];
@@ -774,7 +741,7 @@ App.ReassignMasterWizardStep4Controller = App.HighAvailabilityProgressPageContro
testDBRetryTooltip: function() {
var db_host = this.get('content.serviceProperties.database_hostname');
- var db_type = this.get('dbType');
+ var db_type = this.get('content.databaseType');
var db_props = this.get('preparedDBProperties');
return Em.I18n.t('services.reassign.step4.tasks.testDBConnection.tooltip').format(
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@ambari.apache.org
For additional commands, e-mail: commits-help@ambari.apache.org