bigtop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c..@apache.org
Subject bigtop git commit: BIGTOP-2325. hawq init needs to be run before first service start
Date Thu, 18 Feb 2016 15:41:43 GMT
Repository: bigtop
Updated Branches:
  refs/heads/BIGTOP-2320 772acd189 -> 7d92b2934


BIGTOP-2325. hawq init needs to be run before first service start


Project: http://git-wip-us.apache.org/repos/asf/bigtop/repo
Commit: http://git-wip-us.apache.org/repos/asf/bigtop/commit/7d92b293
Tree: http://git-wip-us.apache.org/repos/asf/bigtop/tree/7d92b293
Diff: http://git-wip-us.apache.org/repos/asf/bigtop/diff/7d92b293

Branch: refs/heads/BIGTOP-2320
Commit: 7d92b29346b0e291a7b59797e92cfc465c1d64bc
Parents: 772acd1
Author: Konstantin Boudnik <cos@apache.org>
Authored: Thu Feb 18 18:41:15 2016 +0300
Committer: Konstantin Boudnik <cos@apache.org>
Committed: Thu Feb 18 18:41:15 2016 +0300

----------------------------------------------------------------------
 bigtop-deploy/puppet/modules/hawq/manifests/init.pp | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/bigtop/blob/7d92b293/bigtop-deploy/puppet/modules/hawq/manifests/init.pp
----------------------------------------------------------------------
diff --git a/bigtop-deploy/puppet/modules/hawq/manifests/init.pp b/bigtop-deploy/puppet/modules/hawq/manifests/init.pp
index 23c566b..6c45773 100644
--- a/bigtop-deploy/puppet/modules/hawq/manifests/init.pp
+++ b/bigtop-deploy/puppet/modules/hawq/manifests/init.pp
@@ -61,10 +61,15 @@ class hawq {
         content => template('hawq/yarn-client.xml'),
         require => [File["/etc/hawq/conf"]],
     }
+    exec { "hawk init":
+      path 	 => ['/usr/bin'],
+      command	 => 'bash -x /usr/bin/hawq init',
+      require	 => Package['hawq'],
+    }
 
     service { "hawq":
       ensure  => running,
-      require => [ Package["hawq"], File["/etc/default/hawq"] ],
+      require => [ Package["hawq"], File["/etc/default/hawq"], Exec["hawk init"] ],
       subscribe => [ Package["hawq"], File["/etc/default/hawq", "/etc/hawq/conf/hawq-site.xml"]
]
     }
   }


Mime
View raw message