Browse Source

AMBARI-2876. Puppet script syntax issues result in hive deployment with custom DB and oozie service check failures. (smohanty)

Sumit Mohanty 11 years ago
parent
commit
7c3bab94dc

+ 6 - 0
ambari-agent/src/main/puppet/modules/hdp-hive/manifests/jdbc-connector.pp

@@ -24,9 +24,15 @@ class hdp-hive::jdbc-connector()
 
   $jdbc_jar_name = $hdp-hive::params::jdbc_jar_name
   
+  $java_share_dir = "/usr/share/java"
+  $driver_curl_target = "${java_share_dir}/${jdbc_jar_name}"
+
   $hive_lib = $hdp-hive::params::hive_lib
   $target = "${hive_lib}/${jdbc_jar_name}"
   
+  $jdk_location = $hdp::params::jdk_location
+  $driver_curl_source = "${jdk_location}${jdbc_jar_name}"
+
   anchor { 'hdp-hive::jdbc-connector::begin':}
 
    hdp::package { 'mysql-connector-java' :

+ 2 - 3
ambari-agent/src/main/puppet/modules/hdp-oozie/manifests/oozie/service_check.pp

@@ -47,6 +47,8 @@ define hdp-oozie::smoke_shell_file(
   $conf_dir = $hdp::params::oozie_conf_dir
   $hadoopconf_dir = $hdp::params::hadoop_conf_dir 
   $security_enabled=$hdp::params::security_enabled
+  $jt_host=$hdp::params::jtnode_host
+  $nn_host=$hdp::params::namenode_host
   if ($security_enabled == true) {
     $security = "true"
   } else {
@@ -54,9 +56,6 @@ define hdp-oozie::smoke_shell_file(
   }
   $smoke_user_keytab = $hdp::params::smokeuser_keytab
   $realm=$hdp::params::kerberos_domain
-  $kinit_path = $hdp::params::kinit_path_local
-  $nn_principal = $hdp::params::nn_principal
-  $jt_principal = $hdp::params::jt_principal
 
   file { "/tmp/${smoke_shell_file_name}":
     ensure => present,