incubator-bigtop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r..@apache.org
Subject svn commit: r1339286 - /incubator/bigtop/trunk/bigtop-deploy/puppet/modules/hadoop-oozie/manifests/init.pp
Date Wed, 16 May 2012 17:57:57 GMT
Author: rvs
Date: Wed May 16 17:57:56 2012
New Revision: 1339286

URL: http://svn.apache.org/viewvc?rev=1339286&view=rev
Log:
BIGTOP-588. Oozie puppet code needs to take care of initializing the DB

Modified:
    incubator/bigtop/trunk/bigtop-deploy/puppet/modules/hadoop-oozie/manifests/init.pp

Modified: incubator/bigtop/trunk/bigtop-deploy/puppet/modules/hadoop-oozie/manifests/init.pp
URL: http://svn.apache.org/viewvc/incubator/bigtop/trunk/bigtop-deploy/puppet/modules/hadoop-oozie/manifests/init.pp?rev=1339286&r1=1339285&r2=1339286&view=diff
==============================================================================
--- incubator/bigtop/trunk/bigtop-deploy/puppet/modules/hadoop-oozie/manifests/init.pp (original)
+++ incubator/bigtop/trunk/bigtop-deploy/puppet/modules/hadoop-oozie/manifests/init.pp Wed
May 16 17:57:56 2012
@@ -37,9 +37,16 @@ class hadoop-oozie {
       require => Package["oozie"],
     }
 
+    exec { "Oozie DB init":
+      command => "/etc/init.d/oozie init",
+      cwd     => "/var/lib/oozie",
+      creates => "/var/lib/oozie/derby.log",
+      require => Package["oozie"],
+    }
+
     service { "oozie":
       ensure => running,
-      require => Package["oozie"],
+      require => [ Package["oozie"], Exec["Oozie DB init"] ],
       hasrestart => true,
       hasstatus => true,
     } 



Mime
View raw message