diff options
author | YoungWoo Kim <ywkim@apache.org> | 2015-07-09 14:58:01 +0900 |
---|---|---|
committer | YoungWoo Kim <ywkim@apache.org> | 2015-07-30 14:36:56 +0900 |
commit | 8effb9062f6a44fffa6d220bf7906ac87ab968d4 (patch) | |
tree | c7ed6cfa6abc9edecce89f869f9a6cc946010166 /bigtop-deploy/puppet | |
parent | 4055b78691673b7f41e34e418ca92f8e72c7b906 (diff) |
BIGTOP-1921. Puppet recipe for YCSB
Diffstat (limited to 'bigtop-deploy/puppet')
-rw-r--r-- | bigtop-deploy/puppet/hieradata/bigtop/cluster.yaml | 2 | ||||
-rw-r--r-- | bigtop-deploy/puppet/hieradata/site.yaml | 1 | ||||
-rw-r--r-- | bigtop-deploy/puppet/manifests/cluster.pp | 3 | ||||
-rw-r--r-- | bigtop-deploy/puppet/modules/ycsb/manifests/init.pp | 22 | ||||
-rw-r--r-- | bigtop-deploy/puppet/modules/ycsb/tests/init.pp | 17 |
5 files changed, 44 insertions, 1 deletions
diff --git a/bigtop-deploy/puppet/hieradata/bigtop/cluster.yaml b/bigtop-deploy/puppet/hieradata/bigtop/cluster.yaml index aaa4a068..85583d14 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: diff --git a/bigtop-deploy/puppet/hieradata/site.yaml b/bigtop-deploy/puppet/hieradata/site.yaml index 826d7489..f8c1b7b0 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/" diff --git a/bigtop-deploy/puppet/manifests/cluster.pp b/bigtop-deploy/puppet/manifests/cluster.pp index 77cbbcfa..19cfc651 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 + } } 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 00000000..8e7e7d59 --- /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, + } + } +} 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 00000000..da06706a --- /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": } |