diff options
author | Ilya Tikhonov <itikhonov@gridgain.com> | 2014-10-22 20:05:05 +0400 |
---|---|---|
committer | Konstantin Boudnik <cos@apache.org> | 2014-11-07 11:32:07 -0800 |
commit | 70c8dec59d251d9344b0af17c6e702faa7e77326 (patch) | |
tree | da9fb57b346d3bfe09df433cdf2ca6d63c8deb8e /bigtop-deploy | |
parent | 8766429f8c54964e7cd1777d2635e9831bc73661 (diff) |
BIGTOP-1490. Adding GridGain to BigTop
Diffstat (limited to 'bigtop-deploy')
4 files changed, 74 insertions, 1 deletions
diff --git a/bigtop-deploy/puppet/modules/gridgain-hadoop/manifests/init.pp b/bigtop-deploy/puppet/modules/gridgain-hadoop/manifests/init.pp new file mode 100644 index 00000000..7088ecab --- /dev/null +++ b/bigtop-deploy/puppet/modules/gridgain-hadoop/manifests/init.pp @@ -0,0 +1,36 @@ +# 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 gridgain-hadoop { + define server() { + package { "gridgain-hadoop": + ensure => latest, + } + + package { "gridgain-hadoop-service": + ensure => latest, + } + + file { "/etc/default/gridgain-hadoop": + content => template("gridgain-hadoop/gridgain-hadoop"), + require => Package["gridgain-hadoop"], + } + + service { "gridgain-hadoop": + ensure => running, + require => [ Package["gridgain-hadoop", "gridgain-hadoop-service"], File["/etc/default/gridgain-hadoop"] ], + } + } +}
\ No newline at end of file diff --git a/bigtop-deploy/puppet/modules/gridgain-hadoop/templates/gridgain-hadoop b/bigtop-deploy/puppet/modules/gridgain-hadoop/templates/gridgain-hadoop new file mode 100644 index 00000000..4ab127f4 --- /dev/null +++ b/bigtop-deploy/puppet/modules/gridgain-hadoop/templates/gridgain-hadoop @@ -0,0 +1,21 @@ +# 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. + +export HADOOP_PREFIX=/usr +export GRIDGAIN_HOME=/usr/lib/gridgain-hadoop +export GRIDGAIN_LOG_DIR=/var/log/gridgain-hadoop +export GRIDGAIN_PID_DIR=/var/run/gridgain-hadoop +export GRIDGAIN_WORK_DIR="/var/run/gridgain-hadoop/work" +export HADOOP_HOME=${HADOOP_HOME:-/usr/lib/hadoop} diff --git a/bigtop-deploy/puppet/modules/gridgain-hadoop/tests/init.pp b/bigtop-deploy/puppet/modules/gridgain-hadoop/tests/init.pp new file mode 100644 index 00000000..c4536edf --- /dev/null +++ b/bigtop-deploy/puppet/modules/gridgain-hadoop/tests/init.pp @@ -0,0 +1,16 @@ +# 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. + +gridgain-hadoop::server { "test-gridgain-hadoop-server": } diff --git a/bigtop-deploy/puppet/modules/hadoop-hive/tests/init.pp b/bigtop-deploy/puppet/modules/hadoop-hive/tests/init.pp index 1ad4fd3e..44c62c8f 100644 --- a/bigtop-deploy/puppet/modules/hadoop-hive/tests/init.pp +++ b/bigtop-deploy/puppet/modules/hadoop-hive/tests/init.pp @@ -13,4 +13,4 @@ # See the License for the specific language governing permissions and # limitations under the License. -hadoop-hive::client { "test-hive": } +hadoop-hive::client { "test-hive": } |