AMBARI-21351 Add Support For MariaDB to Python Scripts update (dili)

Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/e512d103
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/e512d103
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/e512d103

Branch: refs/heads/branch-2.5
Commit: e512d1032ae173f8828353f94830566cf9b34dfa
Parents: fa585fb
Author: Di Li <[email protected]>
Authored: Thu Jul 6 16:06:12 2017 -0400
Committer: Di Li <[email protected]>
Committed: Thu Jul 6 16:06:12 2017 -0400

----------------------------------------------------------------------
 .../HIVE/0.12.0.2.0/package/scripts/status_params.py            | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/e512d103/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 fd4fc64..f5b00ac 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
@@ -20,6 +20,7 @@ limitations under the License.
 
 from ambari_commons import OSCheck
 
+from resource_management.core.logger import Logger
 from resource_management.libraries.functions import conf_select
 from resource_management.libraries.functions import stack_select
 from resource_management.libraries.functions import format
@@ -68,7 +69,9 @@ 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")
+  mariadb_redhat_support = 
default("/configurations/hive-env/mariadb_redhat_support", "false")
+  mariadb_redhat_support = str(mariadb_redhat_support)
+  Logger.info('MariaDB RedHat Support: %s' % mariadb_redhat_support)
   process_name = 'mysqld'
   if OSCheck.is_suse_family() or OSCheck.is_ubuntu_family():
     daemon_name = 'mysql'

Reply via email to