Sfoglia il codice sorgente

AMBARI-326. Dependencies should be added only during install phase (Contributed by Jitendra)

git-svn-id: https://svn.apache.org/repos/asf/incubator/ambari/branches/ambari-186@1345407 13f79535-47bb-0310-9956-ffa450edef68
Vikram Dixit K 13 anni fa
parent
commit
1b8f614acc
2 ha cambiato i file con 12 aggiunte e 10 eliminazioni
  1. 2 0
      CHANGES.txt
  2. 10 10
      hmc/php/puppet/genmanifest/PuppetClassDependencies.php

+ 2 - 0
CHANGES.txt

@@ -6,6 +6,8 @@ characters wide.
 
 
 Release 0.1.x - unreleased
 Release 0.1.x - unreleased
 
 
+  AMBARI-326. Dependencies should be added only during install phase (Jitendra via Vikram)
+
   AMBARI-324. Welcome page missing. (Yusaku via Vikram)
   AMBARI-324. Welcome page missing. (Yusaku via Vikram)
 
 
   AMBARI-323. During any process in the cluster initialization wizard, if the user goes back to the "1 Create Cluster" tab, the user is stuck. (Vikram)
   AMBARI-323. During any process in the cluster initialization wizard, if the user goes back to the "1 Create Cluster" tab, the user is stuck. (Vikram)

+ 10 - 10
hmc/php/puppet/genmanifest/PuppetClassDependencies.php

@@ -41,9 +41,9 @@ class PuppetClassDependencies {
         array("service_state" => SERVICE_STATE_INSTALLED_AND_CONFIGURED));
         array("service_state" => SERVICE_STATE_INSTALLED_AND_CONFIGURED));
 
 
     $this->addDependency("hdp-hbase::master", SERVICE_STATE_RUNNING, "hdp-zookeeper::client",
     $this->addDependency("hdp-hbase::master", SERVICE_STATE_RUNNING, "hdp-zookeeper::client",
-        array("service_state" => SERVICE_STATE_INSTALLED_AND_CONFIGURED));
+        array("service_state" => SERVICE_STATE_NO_OP));
     $this->addDependency("hdp-hbase::master", SERVICE_STATE_RUNNING, "hdp-hadoop::client",
     $this->addDependency("hdp-hbase::master", SERVICE_STATE_RUNNING, "hdp-hadoop::client",
-        array("service_state" => SERVICE_STATE_INSTALLED_AND_CONFIGURED));
+        array("service_state" => SERVICE_STATE_NO_OP));
 
 
     $this->addDependency("hdp-hbase::regionserver", SERVICE_STATE_INSTALLED_AND_CONFIGURED, "hdp-zookeeper::client",
     $this->addDependency("hdp-hbase::regionserver", SERVICE_STATE_INSTALLED_AND_CONFIGURED, "hdp-zookeeper::client",
         array("service_state" => SERVICE_STATE_INSTALLED_AND_CONFIGURED));
         array("service_state" => SERVICE_STATE_INSTALLED_AND_CONFIGURED));
@@ -51,21 +51,21 @@ class PuppetClassDependencies {
         array("service_state" => SERVICE_STATE_INSTALLED_AND_CONFIGURED));
         array("service_state" => SERVICE_STATE_INSTALLED_AND_CONFIGURED));
 
 
     $this->addDependency("hdp-hbase::regionserver", SERVICE_STATE_RUNNING, "hdp-zookeeper::client",
     $this->addDependency("hdp-hbase::regionserver", SERVICE_STATE_RUNNING, "hdp-zookeeper::client",
-        array("service_state" => SERVICE_STATE_INSTALLED_AND_CONFIGURED));
+        array("service_state" => SERVICE_STATE_NO_OP));
     $this->addDependency("hdp-hbase::regionserver", SERVICE_STATE_RUNNING, "hdp-hadoop::client",
     $this->addDependency("hdp-hbase::regionserver", SERVICE_STATE_RUNNING, "hdp-hadoop::client",
-        array("service_state" => SERVICE_STATE_INSTALLED_AND_CONFIGURED));
+        array("service_state" => SERVICE_STATE_NO_OP));
 
 
     //Oozie
     //Oozie
     $this->addDependency("hdp-oozie::server", SERVICE_STATE_INSTALLED_AND_CONFIGURED, "hdp-hadoop::client",
     $this->addDependency("hdp-oozie::server", SERVICE_STATE_INSTALLED_AND_CONFIGURED, "hdp-hadoop::client",
         array("service_state" => SERVICE_STATE_INSTALLED_AND_CONFIGURED));
         array("service_state" => SERVICE_STATE_INSTALLED_AND_CONFIGURED));
     $this->addDependency("hdp-oozie::server", SERVICE_STATE_RUNNING, "hdp-hadoop::client",
     $this->addDependency("hdp-oozie::server", SERVICE_STATE_RUNNING, "hdp-hadoop::client",
-        array("service_state" => SERVICE_STATE_INSTALLED_AND_CONFIGURED));
+        array("service_state" => SERVICE_STATE_NO_OP));
 
 
     //Hive depends on Hcat
     //Hive depends on Hcat
     $this->addDependency("hdp-hive::server", SERVICE_STATE_INSTALLED_AND_CONFIGURED, "hdp-hcat",
     $this->addDependency("hdp-hive::server", SERVICE_STATE_INSTALLED_AND_CONFIGURED, "hdp-hcat",
         array("service_state" => SERVICE_STATE_INSTALLED_AND_CONFIGURED));
         array("service_state" => SERVICE_STATE_INSTALLED_AND_CONFIGURED));
     $this->addDependency("hdp-hive::server", SERVICE_STATE_RUNNING, "hdp-hcat",
     $this->addDependency("hdp-hive::server", SERVICE_STATE_RUNNING, "hdp-hcat",
-        array("service_state" => SERVICE_STATE_INSTALLED_AND_CONFIGURED));
+        array("service_state" => SERVICE_STATE_NO_OP));
     $this->addDependency("hdp-hive::client", SERVICE_STATE_INSTALLED_AND_CONFIGURED, "hdp-hcat",
     $this->addDependency("hdp-hive::client", SERVICE_STATE_INSTALLED_AND_CONFIGURED, "hdp-hcat",
         array("service_state" => SERVICE_STATE_INSTALLED_AND_CONFIGURED));
         array("service_state" => SERVICE_STATE_INSTALLED_AND_CONFIGURED));
 
 
@@ -92,13 +92,13 @@ class PuppetClassDependencies {
         array("service_state" => SERVICE_STATE_INSTALLED_AND_CONFIGURED));
         array("service_state" => SERVICE_STATE_INSTALLED_AND_CONFIGURED));
 
 
     $this->addDependency("hdp-templeton::server", SERVICE_STATE_RUNNING, "hdp-zookeeper::client",
     $this->addDependency("hdp-templeton::server", SERVICE_STATE_RUNNING, "hdp-zookeeper::client",
-        array("service_state" => SERVICE_STATE_INSTALLED_AND_CONFIGURED));
+        array("service_state" => SERVICE_STATE_NO_OP));
     $this->addDependency("hdp-templeton::server", SERVICE_STATE_RUNNING, "hdp-hadoop::client",
     $this->addDependency("hdp-templeton::server", SERVICE_STATE_RUNNING, "hdp-hadoop::client",
-        array("service_state" => SERVICE_STATE_INSTALLED_AND_CONFIGURED));
+        array("service_state" => SERVICE_STATE_NO_OP));
     $this->addDependency("hdp-templeton::server", SERVICE_STATE_RUNNING, "hdp-pig",
     $this->addDependency("hdp-templeton::server", SERVICE_STATE_RUNNING, "hdp-pig",
-        array("service_state" => SERVICE_STATE_INSTALLED_AND_CONFIGURED));
+        array("service_state" => SERVICE_STATE_NO_OP));
     $this->addDependency("hdp-templeton::server", SERVICE_STATE_RUNNING, "hdp-hcat",
     $this->addDependency("hdp-templeton::server", SERVICE_STATE_RUNNING, "hdp-hcat",
-        array("service_state" => SERVICE_STATE_INSTALLED_AND_CONFIGURED));
+        array("service_state" => SERVICE_STATE_NO_OP));
 
 
     //Ganglia
     //Ganglia
     $this->addDependency("hdp-ganglia::monitor", SERVICE_STATE_RUNNING, "hdp-ganglia::hdp-gmond::service_check", array());
     $this->addDependency("hdp-ganglia::monitor", SERVICE_STATE_RUNNING, "hdp-ganglia::hdp-gmond::service_check", array());