You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by mg...@apache.org on 2018/04/10 11:01:15 UTC
[ambari] branch trunk updated: AMBARI-23523 Fix
mysql-collector-java installation for HIVE (mgergely)
This is an automated email from the ASF dual-hosted git repository.
mgergely 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 865af31 AMBARI-23523 Fix mysql-collector-java installation for HIVE (mgergely)
865af31 is described below
commit 865af311a2887b92cfb88e663c78efcb6a1f0569
Author: Miklos Gergely <mg...@hortonworks.com>
AuthorDate: Tue Apr 10 11:19:57 2018 +0200
AMBARI-23523 Fix mysql-collector-java installation for HIVE (mgergely)
---
.../libraries/functions/package_conditions.py | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/ambari-common/src/main/python/resource_management/libraries/functions/package_conditions.py b/ambari-common/src/main/python/resource_management/libraries/functions/package_conditions.py
index ebc1aba..80c661c 100644
--- a/ambari-common/src/main/python/resource_management/libraries/functions/package_conditions.py
+++ b/ambari-common/src/main/python/resource_management/libraries/functions/package_conditions.py
@@ -79,6 +79,15 @@ def should_install_mysql():
return False
return _has_applicable_local_component(config, "MYSQL_SERVER")
+def should_install_mysql_connector():
+ config = Script.get_config()
+ hive_database = config['configurations']['hive-env']['hive_database']
+ hive_use_existing_db = hive_database.startswith('Existing')
+
+ if hive_use_existing_db:
+ return False
+ return _has_applicable_local_component(config, ["MYSQL_SERVER", "HIVE_METASTORE", "HIVE_SERVER", "HIVE_SERVER_INTERACTIVE"])
+
def should_install_hive_atlas():
atlas_hosts = default('/clusterHostInfo/atlas_server_hosts', [])
has_atlas = len(atlas_hosts) > 0
--
To stop receiving notification emails like this one, please contact
mgergely@apache.org.