Repository: ambari Updated Branches: refs/heads/branch-feature-AMBARI-21348 ccdc57dbb -> 49d76e1ed
AMBARI-21351 Add Support For MariaDB to Python Scripts (dili) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/49d76e1e Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/49d76e1e Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/49d76e1e Branch: refs/heads/branch-feature-AMBARI-21348 Commit: 49d76e1edb1466c1cbe2c606f79e7e0750b41346 Parents: ccdc57d Author: Di Li <[email protected]> Authored: Fri Jun 30 11:52:44 2017 -0400 Committer: Di Li <[email protected]> Committed: Fri Jun 30 11:52:44 2017 -0400 ---------------------------------------------------------------------- .../HIVE/0.12.0.2.0/package/scripts/status_params.py | 3 +++ 1 file changed, 3 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/49d76e1e/ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/status_params.py ---------------------------------------------------------------------- diff --git a/ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/status_params.py b/ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/status_params.py index b7cb148..fd4fc64 100644 --- a/ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/status_params.py +++ b/ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/status_params.py @@ -68,9 +68,12 @@ else: hcat_pid_dir = config['configurations']['hive-env']['hcat_pid_dir'] #hcat_pid_dir webhcat_pid_file = format('{hcat_pid_dir}/webhcat.pid') + mariadb_redhat_support = default("/configurations/hive_env/mariadb_redhat_support", "false") process_name = 'mysqld' if OSCheck.is_suse_family() or OSCheck.is_ubuntu_family(): daemon_name = 'mysql' + elif OSCheck.is_redhat_family() and int(OSCheck.get_os_major_version()) >= 7 and mariadb_redhat_support.lower() == "true": + daemon_name = 'mariadb' else: daemon_name = 'mysqld'
