You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bigtop.apache.org by rv...@apache.org on 2012/05/16 19:57:57 UTC

svn commit: r1339286 - /incubator/bigtop/trunk/bigtop-deploy/puppet/modules/hadoop-oozie/manifests/init.pp

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,
     }