You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bigtop.apache.org by co...@apache.org on 2016/02/18 16:41:43 UTC
bigtop git commit: BIGTOP-2325. hawq init needs to be run before
first service start
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 <co...@apache.org>
Authored: Thu Feb 18 18:41:15 2016 +0300
Committer: Konstantin Boudnik <co...@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"] ]
}
}