Return-Path: X-Original-To: apmail-bigtop-commits-archive@www.apache.org Delivered-To: apmail-bigtop-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4937818194 for ; Thu, 18 Feb 2016 15:41:50 +0000 (UTC) Received: (qmail 90911 invoked by uid 500); 18 Feb 2016 15:41:44 -0000 Delivered-To: apmail-bigtop-commits-archive@bigtop.apache.org Received: (qmail 90877 invoked by uid 500); 18 Feb 2016 15:41:43 -0000 Mailing-List: contact commits-help@bigtop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: bigtop-dev@bigtop.apache.org Delivered-To: mailing list commits@bigtop.apache.org Received: (qmail 90868 invoked by uid 99); 18 Feb 2016 15:41:43 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Feb 2016 15:41:43 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id B096FDFF67; Thu, 18 Feb 2016 15:41:43 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: cos@apache.org To: commits@bigtop.apache.org Message-Id: <64c649d22f7f40258fda000893bd906c@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: bigtop git commit: BIGTOP-2325. hawq init needs to be run before first service start Date: Thu, 18 Feb 2016 15:41:43 +0000 (UTC) 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 Authored: Thu Feb 18 18:41:15 2016 +0300 Committer: Konstantin Boudnik 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"] ] } }