Repository: bigtop
Updated Branches:
  refs/heads/master 34f94010b -> 31ec50fb0


BIGTOP-2579. Puppet needs to be updated for Hive Metastore service


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

Branch: refs/heads/master
Commit: 31ec50fb0fd13b5af3a0ab95a47564f6d6cee569
Parents: 34f9401
Author: Roman Shaposhnik <[email protected]>
Authored: Wed Nov 9 12:42:23 2016 -0800
Committer: Roman Shaposhnik <[email protected]>
Committed: Wed Nov 9 16:34:12 2016 -0800

----------------------------------------------------------------------
 bigtop-deploy/puppet/modules/hadoop_hive/manifests/init.pp | 5 +++--
 bigtop-deploy/puppet/modules/hadoop_hive/tests/init.pp     | 4 +++-
 2 files changed, 6 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/bigtop/blob/31ec50fb/bigtop-deploy/puppet/modules/hadoop_hive/manifests/init.pp
----------------------------------------------------------------------
diff --git a/bigtop-deploy/puppet/modules/hadoop_hive/manifests/init.pp 
b/bigtop-deploy/puppet/modules/hadoop_hive/manifests/init.pp
index 538308c..967bb50 100644
--- a/bigtop-deploy/puppet/modules/hadoop_hive/manifests/init.pp
+++ b/bigtop-deploy/puppet/modules/hadoop_hive/manifests/init.pp
@@ -85,6 +85,7 @@ class hadoop_hive {
       hasstatus => true,
     } 
     Kerberos::Host_keytab <| title == "hive" |> -> Service["hive-server2"]
+    Service <| title == "hive-metastore" |> -> Service["hive-server2"]
   }
 
   class metastore {
@@ -96,12 +97,12 @@ class hadoop_hive {
 
     service { "hive-metastore":
       ensure => running,
-      require => Package["hive-server2"],
+      require => Package["hive-metastore"],
       subscribe => File["/etc/hive/conf/hive-site.xml"],
       hasrestart => true,
       hasstatus => true,
     }
     Kerberos::Host_keytab <| title == "hive" |> -> Service["hive-metastore"]
-    Service["hive-metastore"] -> Service["hive-server2"]
+    File <| title == "/etc/hadoop/conf/core-site.xml" |> -> 
Service["hive-metastore"]
   }
 }

http://git-wip-us.apache.org/repos/asf/bigtop/blob/31ec50fb/bigtop-deploy/puppet/modules/hadoop_hive/tests/init.pp
----------------------------------------------------------------------
diff --git a/bigtop-deploy/puppet/modules/hadoop_hive/tests/init.pp 
b/bigtop-deploy/puppet/modules/hadoop_hive/tests/init.pp
index ac202e9..8daa435 100644
--- a/bigtop-deploy/puppet/modules/hadoop_hive/tests/init.pp
+++ b/bigtop-deploy/puppet/modules/hadoop_hive/tests/init.pp
@@ -13,4 +13,6 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-hadoop_hive::client { "test-hive": }
+include hadoop_hive::client
+include hadoop_hive::metastore
+include hadoop_hive::server2

Reply via email to