Sfoglia il codice sorgente

AMBARI-427. Class not found Class['hdp-zookeeper::service'] during uninstall (Contributed by Ramya)

git-svn-id: https://svn.apache.org/repos/asf/incubator/ambari/branches/ambari-186@1347205 13f79535-47bb-0310-9956-ffa450edef68
Vikram Dixit K 13 anni fa
parent
commit
28ec82482d
2 ha cambiato i file con 7 aggiunte e 2 eliminazioni
  1. 2 0
      CHANGES.txt
  2. 5 2
      hmc/puppet/modules/hdp-zookeeper/manifests/init.pp

+ 2 - 0
CHANGES.txt

@@ -6,6 +6,8 @@ characters wide.
 
 
 Release 0.1.x - unreleased
 Release 0.1.x - unreleased
 
 
+  AMBARI-427. Class not found Class['hdp-zookeeper::service'] during uninstall (Ramya via Vikram)
+
   AMBARI-531. Remove/disable reconfigure option for Sqoop, Pig, Ganglia and Templeton (Yusaku via Vikram)
   AMBARI-531. Remove/disable reconfigure option for Sqoop, Pig, Ganglia and Templeton (Yusaku via Vikram)
 
 
   AMBARI-529. Fix Advanced Config: HDFS reserved space is in bytes. Too many bytes to count. (Hitesh via Vikram)
   AMBARI-529. Fix Advanced Config: HDFS reserved space is in bytes. Too many bytes to count. (Hitesh via Vikram)

+ 5 - 2
hmc/puppet/modules/hdp-zookeeper/manifests/init.pp

@@ -36,8 +36,11 @@ class hdp-zookeeper(
         }
         }
        }
        }
 
 
-     Anchor['hdp-zookeeper::begin'] -> Hdp::Package['zookeeper'] -> Hdp::Directory_recursive_create[$zk_config_dir] -> Class['hdp-zookeeper::service']  -> Anchor['hdp-zookeeper::end']
-
+     if ($type == 'server') {
+       Anchor['hdp-zookeeper::begin'] -> Hdp::Package['zookeeper'] -> Hdp::Directory_recursive_create[$zk_config_dir] -> Class['hdp-zookeeper::service']  -> Anchor['hdp-zookeeper::end']
+     } else {
+       Anchor['hdp-zookeeper::begin'] -> Hdp::Package['zookeeper'] -> Hdp::Directory_recursive_create[$zk_config_dir] -> Anchor['hdp-zookeeper::end']
+     }
    } else {
    } else {
      hdp::package { 'zookeeper':}
      hdp::package { 'zookeeper':}