bigtop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c..@apache.org
Subject [1/2] bigtop git commit: GTOP-2325. Deployment recipes for HAWQ [Forced Update!]
Date Sat, 05 Mar 2016 04:24:20 GMT
Repository: bigtop
Updated Branches:
  refs/heads/BIGTOP-2320 d13742f01 -> 1da8f0ae5 (forced update)


GTOP-2325. Deployment recipes for HAWQ

Fixing permissions on hawq-site.xml


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

Branch: refs/heads/BIGTOP-2320
Commit: 1da8f0ae55062fb56b25e689e30d66186743d7ae
Parents: 63c6d13
Author: Konstantin Boudnik <cos@apache.org>
Authored: Sat Feb 27 17:43:42 2016 -0800
Committer: Konstantin Boudnik <cos@apache.org>
Committed: Fri Mar 4 20:24:04 2016 -0800

----------------------------------------------------------------------
 .../puppet/modules/hawq/manifests/init.pp        | 19 +++++++++++--------
 1 file changed, 11 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/bigtop/blob/1da8f0ae/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 8ba6adb..b932632 100644
--- a/bigtop-deploy/puppet/modules/hawq/manifests/init.pp
+++ b/bigtop-deploy/puppet/modules/hawq/manifests/init.pp
@@ -49,6 +49,9 @@ class hawq {
     file { "/etc/hawq/conf/hawq-site.xml":
         content => template('hawq/hawq-site.xml'),
         require => [File["/etc/hawq/conf"]],
+        owner   => 'hawq',
+        group   => 'hawq',
+        mode    => '0755',
     }
     file { "/etc/hawq/conf/gpcheck.cnf":
         content => template('hawq/gpcheck.cnf'),
@@ -95,18 +98,18 @@ class hawq {
     }
 
 ### TODO init require hdfs to be running. Need to test this
-    exec { "hawk init":
+    exec { "hawk init master":
       path 	 => ['/usr/bin'],
       # Silly init will ask if I am really sure I want to init the cluster
-      command	 => 'echo y | bash -x /usr/bin/hawq init cluster',
+      command	 => 'echo y | bash -x /usr/bin/hawq init master',
       require	 => [ Package['hawq'], Exec ['install pygresql modules2'] ],
     }
 
-### TODO The expectation is that init will start the service. I don't think so...
-#    service { "hawq":
-#      ensure  => running,
-#      require => [ Package["hawq"], File["/etc/default/hawq"], Exec["hawk init"] ],
-#     subscribe => [ Package["hawq"], File["/etc/default/hawq", "/etc/hawq/conf/hawq-site.xml"]
]
-#    }
+## TODO The expectation is that init will start the service. I don't think so...
+    service { "hawq":
+      ensure  => running,
+      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