bigtop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yw...@apache.org
Subject bigtop git commit: BIGTOP-1921. Puppet recipe for YCSB
Date Thu, 30 Jul 2015 05:37:40 GMT
Repository: bigtop
Updated Branches:
  refs/heads/master 4055b7869 -> 8effb9062


BIGTOP-1921. Puppet recipe for YCSB


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

Branch: refs/heads/master
Commit: 8effb9062f6a44fffa6d220bf7906ac87ab968d4
Parents: 4055b78
Author: YoungWoo Kim <ywkim@apache.org>
Authored: Thu Jul 9 14:58:01 2015 +0900
Committer: YoungWoo Kim <ywkim@apache.org>
Committed: Thu Jul 30 14:36:56 2015 +0900

----------------------------------------------------------------------
 .../puppet/hieradata/bigtop/cluster.yaml        |  2 +-
 bigtop-deploy/puppet/hieradata/site.yaml        |  1 +
 bigtop-deploy/puppet/manifests/cluster.pp       |  3 +++
 .../puppet/modules/ycsb/manifests/init.pp       | 22 ++++++++++++++++++++
 bigtop-deploy/puppet/modules/ycsb/tests/init.pp | 17 +++++++++++++++
 5 files changed, 44 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/bigtop/blob/8effb906/bigtop-deploy/puppet/hieradata/bigtop/cluster.yaml
----------------------------------------------------------------------
diff --git a/bigtop-deploy/puppet/hieradata/bigtop/cluster.yaml b/bigtop-deploy/puppet/hieradata/bigtop/cluster.yaml
index aaa4a06..85583d1 100644
--- a/bigtop-deploy/puppet/hieradata/bigtop/cluster.yaml
+++ b/bigtop-deploy/puppet/hieradata/bigtop/cluster.yaml
@@ -17,7 +17,7 @@
 # be installed as usual. Otherwise only a specified list will be set
 # Possible elements:
 # hadoop,yarn,hbase,tachyon,flume,solrcloud,spark,oozie,hcat,sqoop,sqoop2,httpfs,
-# hue,mahout,giraph,crunch,pig,hive,zookeeper
+# hue,mahout,giraph,crunch,pig,hive,zookeeper, ycsb
 # Example (to deploy only HDFS and YARN server and gateway parts)
 # This can be a comma-separated list or an array.
 #hadoop_cluster_node::cluster_components:

http://git-wip-us.apache.org/repos/asf/bigtop/blob/8effb906/bigtop-deploy/puppet/hieradata/site.yaml
----------------------------------------------------------------------
diff --git a/bigtop-deploy/puppet/hieradata/site.yaml b/bigtop-deploy/puppet/hieradata/site.yaml
index 826d748..f8c1b7b 100644
--- a/bigtop-deploy/puppet/hieradata/site.yaml
+++ b/bigtop-deploy/puppet/hieradata/site.yaml
@@ -33,6 +33,7 @@ hadoop::hadoop_storage_dirs:
 #  - tez
 #  - yarn
 #  - zookeeper
+#  - ycsb
 
 #bigtop::jdk_package_name: "openjdk-7-jre-headless"
 #bigtop::bigtop_repo_uri: "http://mirror.example.com/path/to/mirror/"

http://git-wip-us.apache.org/repos/asf/bigtop/blob/8effb906/bigtop-deploy/puppet/manifests/cluster.pp
----------------------------------------------------------------------
diff --git a/bigtop-deploy/puppet/manifests/cluster.pp b/bigtop-deploy/puppet/manifests/cluster.pp
index 77cbbcf..19cfc65 100644
--- a/bigtop-deploy/puppet/manifests/cluster.pp
+++ b/bigtop-deploy/puppet/manifests/cluster.pp
@@ -214,4 +214,7 @@ class hadoop_gateway_node inherits hadoop_cluster_node {
   if ($all or "tez" in $components) {
     include tez::client
   }
+  if ($all or "ycsb" in $components) {
+    include ycsb::client
+  }
 }

http://git-wip-us.apache.org/repos/asf/bigtop/blob/8effb906/bigtop-deploy/puppet/modules/ycsb/manifests/init.pp
----------------------------------------------------------------------
diff --git a/bigtop-deploy/puppet/modules/ycsb/manifests/init.pp b/bigtop-deploy/puppet/modules/ycsb/manifests/init.pp
new file mode 100644
index 0000000..8e7e7d5
--- /dev/null
+++ b/bigtop-deploy/puppet/modules/ycsb/manifests/init.pp
@@ -0,0 +1,22 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+class ycsb {
+  class client {
+    package { ["ycsb"]:
+      ensure => latest,
+    }
+  }
+}

http://git-wip-us.apache.org/repos/asf/bigtop/blob/8effb906/bigtop-deploy/puppet/modules/ycsb/tests/init.pp
----------------------------------------------------------------------
diff --git a/bigtop-deploy/puppet/modules/ycsb/tests/init.pp b/bigtop-deploy/puppet/modules/ycsb/tests/init.pp
new file mode 100644
index 0000000..da06706
--- /dev/null
+++ b/bigtop-deploy/puppet/modules/ycsb/tests/init.pp
@@ -0,0 +1,17 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+include ycsb 
+ycsb::client { "test-ycsb": } 


Mime
View raw message