diff options
Diffstat (limited to 'bigtop-packages/src/deb/hama')
18 files changed, 523 insertions, 0 deletions
diff --git a/bigtop-packages/src/deb/hama/changelog b/bigtop-packages/src/deb/hama/changelog new file mode 100644 index 00000000..d4858cd4 --- /dev/null +++ b/bigtop-packages/src/deb/hama/changelog @@ -0,0 +1 @@ +--- This is auto-generated diff --git a/bigtop-packages/src/deb/hama/compat b/bigtop-packages/src/deb/hama/compat new file mode 100644 index 00000000..ec635144 --- /dev/null +++ b/bigtop-packages/src/deb/hama/compat @@ -0,0 +1 @@ +9 diff --git a/bigtop-packages/src/deb/hama/control b/bigtop-packages/src/deb/hama/control new file mode 100644 index 00000000..288624ae --- /dev/null +++ b/bigtop-packages/src/deb/hama/control @@ -0,0 +1,67 @@ +# 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. + +Source: hama +Section: misc +Priority: extra +Maintainer: BigTop +Build-Depends: debhelper (>= 9) +Standards-Version: 3.9.4 +Homepage: http://hama.apache.org + +Package: hama +Architecture: all +Depends: hadoop, bigtop-utils, zookeeper +Description: Hama is a pure BSP(Bulk Synchronous Parallel) computing + framework on + top of HDFS (Hadoop Distributed File System) for massive scientific + computations such as matrix, graph and network algorithms. + +Package: hama-bspmaster +Architecture: all +Depends: hama (= ${source:Version}) +Description: Maintain the global state of Apache Hama services + BSPMaster is responsible for the following: + - Maintaining groom server status. + - Maintaining supersteps and other counters in a cluster. + - Maintaining job progress information. + - Scheduling Jobs and assigning tasks to groom servers + - Distributing execution classes and configuration across groom servers. + - Providing users with the cluster control interface (web and console based). + +Package: hama-groom +Architecture: all +Depends: hama (= ${source:Version}) +Description: A Groom Server (shortly referred to as groom) is a process that launches bsp tasks assigned by BSPMaster + A Groom Server (shortly referred to as groom) is a process that launches bsp tasks + assigned by BSPMaster. Each groom contacts the BSPMaster, and it takes assigned + tasks and reports its status by means of periodical piggybacks with BSPMaster. + Each groom is designed to run with HDFS or other distributed storages. Basically, + a groom server and a data node should be run on one physical node to get the best performance. (Data-locality) + +Package: hama-conf-pseudo +Architecture: all +Depends: hama (= ${source:Version}) +Description: Apache Hama installation in pseudo-distributed mode + Installation of this RPM will setup your machine to run in pseudo-distributed mode + where each Apache Hama daemon runs in a separate Java process. + +Package: hama-doc +Architecture: all +Depends: hama (= ${source:Version}) +Description: Apache Hama Documentation + Documentation for Apache Hama + + diff --git a/bigtop-packages/src/deb/hama/copyright b/bigtop-packages/src/deb/hama/copyright new file mode 100644 index 00000000..fb67d3f2 --- /dev/null +++ b/bigtop-packages/src/deb/hama/copyright @@ -0,0 +1,16 @@ +Format: http://dep.debian.net/deps/dep5 +Source: http://hama.apache.org/ +Upstream-Name: Apache Hama + +Files: * +Copyright: 2010-2012, The Apache Software Foundation +License: Apache-2.0 + +Files debian/* +Copyright: 2012, The Apache Software Foundation +License: Apache-2.0 + +License: Apache-2.0 + On Debian systems, the complete text of the Apache 2.0 license + can be found in "/usr/share/common-licenses/Apache-2.0". + diff --git a/bigtop-packages/src/deb/hama/hama-bspmaster.postinst b/bigtop-packages/src/deb/hama/hama-bspmaster.postinst new file mode 100644 index 00000000..317c3024 --- /dev/null +++ b/bigtop-packages/src/deb/hama/hama-bspmaster.postinst @@ -0,0 +1,25 @@ +#!/bin/sh +# 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. + +set -e +if [ -x "/etc/init.d/hama-bspmaster" ]; then + update-rc.d hama-bspmaster defaults >/dev/null + if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then + invoke-rc.d hama-bspmaster start || : + else + /etc/init.d/hama-bspmaster start || : + fi +fi diff --git a/bigtop-packages/src/deb/hama/hama-conf-pseudo.dirs b/bigtop-packages/src/deb/hama/hama-conf-pseudo.dirs new file mode 100644 index 00000000..502361ad --- /dev/null +++ b/bigtop-packages/src/deb/hama/hama-conf-pseudo.dirs @@ -0,0 +1 @@ +/etc/hama/conf.pseudo diff --git a/bigtop-packages/src/deb/hama/hama-conf-pseudo.install b/bigtop-packages/src/deb/hama/hama-conf-pseudo.install new file mode 100644 index 00000000..502361ad --- /dev/null +++ b/bigtop-packages/src/deb/hama/hama-conf-pseudo.install @@ -0,0 +1 @@ +/etc/hama/conf.pseudo diff --git a/bigtop-packages/src/deb/hama/hama-conf-pseudo.postinst b/bigtop-packages/src/deb/hama/hama-conf-pseudo.postinst new file mode 100644 index 00000000..a20d0c82 --- /dev/null +++ b/bigtop-packages/src/deb/hama/hama-conf-pseudo.postinst @@ -0,0 +1,61 @@ +#!/bin/sh +# +# 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. +# +# postinst script for hama +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * <postinst> `configure' <most-recently-configured-version> +# * <old-postinst> `abort-upgrade' <new version> +# * <conflictor's-postinst> `abort-remove' `in-favour' <package> +# <new-version> +# * <postinst> `abort-remove' +# * <deconfigured's-postinst> `abort-deconfigure' `in-favour' +# <failed-install-package> <version> `removing' +# <conflicting-package> <version> +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + configure) + update-alternatives --install /etc/hama/conf hama-conf /etc/hama/conf.pseudo 40 + if [ ! -e /etc/hama/conf ]; then + ln -s /etc/hama/conf.pseudo /etc/hama/conf + fi + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + diff --git a/bigtop-packages/src/deb/hama/hama-conf-pseudo.prerm b/bigtop-packages/src/deb/hama/hama-conf-pseudo.prerm new file mode 100644 index 00000000..fe6d6afa --- /dev/null +++ b/bigtop-packages/src/deb/hama/hama-conf-pseudo.prerm @@ -0,0 +1,57 @@ +#!/bin/sh +# +# 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. + +# prerm script for hama +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * <prerm> `remove' +# * <old-prerm> `upgrade' <new-version> +# * <new-prerm> `failed-upgrade' <old-version> +# * <conflictor's-prerm> `remove' `in-favour' <package> <new-version> +# * <deconfigured's-prerm> `deconfigure' `in-favour' +# <package-being-installed> <version> `removing' +# <conflicting-package> <version> +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + remove|upgrade|deconfigure) + update-alternatives --remove hama-conf /etc/hama/conf.pseudo > /dev/null || : + ;; + + failed-upgrade) + ;; + + *) + echo "prerm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + diff --git a/bigtop-packages/src/deb/hama/hama-doc.dirs b/bigtop-packages/src/deb/hama/hama-doc.dirs new file mode 100644 index 00000000..f83f6424 --- /dev/null +++ b/bigtop-packages/src/deb/hama/hama-doc.dirs @@ -0,0 +1 @@ +usr/share/doc/hama-doc diff --git a/bigtop-packages/src/deb/hama/hama-doc.install b/bigtop-packages/src/deb/hama/hama-doc.install new file mode 100644 index 00000000..f83f6424 --- /dev/null +++ b/bigtop-packages/src/deb/hama/hama-doc.install @@ -0,0 +1 @@ +usr/share/doc/hama-doc diff --git a/bigtop-packages/src/deb/hama/hama-groom.postinst b/bigtop-packages/src/deb/hama/hama-groom.postinst new file mode 100644 index 00000000..b81b8605 --- /dev/null +++ b/bigtop-packages/src/deb/hama/hama-groom.postinst @@ -0,0 +1,25 @@ +#!/bin/sh +# 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. + +set -e +if [ -x "/etc/init.d/hama-groom" ]; then + update-rc.d hama-groom defaults >/dev/null + if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then + invoke-rc.d hama-groom start || : + else + /etc/init.d/hama-groom start || : + fi +fi diff --git a/bigtop-packages/src/deb/hama/hama.dirs b/bigtop-packages/src/deb/hama/hama.dirs new file mode 100644 index 00000000..d8f22dde --- /dev/null +++ b/bigtop-packages/src/deb/hama/hama.dirs @@ -0,0 +1,4 @@ +etc/default +etc/hama/conf.dist +usr/bin +usr/lib/hama diff --git a/bigtop-packages/src/deb/hama/hama.install b/bigtop-packages/src/deb/hama/hama.install new file mode 100644 index 00000000..256ea148 --- /dev/null +++ b/bigtop-packages/src/deb/hama/hama.install @@ -0,0 +1,4 @@ +etc/default/hama +etc/hama/conf.dist +usr/bin/hama +usr/lib/hama diff --git a/bigtop-packages/src/deb/hama/hama.postinst b/bigtop-packages/src/deb/hama/hama.postinst new file mode 100644 index 00000000..7eb7e21a --- /dev/null +++ b/bigtop-packages/src/deb/hama/hama.postinst @@ -0,0 +1,36 @@ +#!/bin/sh +# 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. + +set -e + +chmod 0777 /usr/lib/hama/logs + +case "$1" in + configure) + # Install config alternatives + update-alternatives --install /etc/hama/conf hama-conf /etc/hama/conf.dist 30 + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +#DEBHELPER# diff --git a/bigtop-packages/src/deb/hama/hama.preinst b/bigtop-packages/src/deb/hama/hama.preinst new file mode 100644 index 00000000..421ee900 --- /dev/null +++ b/bigtop-packages/src/deb/hama/hama.preinst @@ -0,0 +1,62 @@ +#!/bin/sh +# +# 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. + +# preinst script for hama +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * <new-preinst> `install' +# * <new-preinst> `install' <old-version> +# * <new-preinst> `upgrade' <old-version> +# * <old-preinst> `abort-upgrade' <new-version> +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + install|upgrade) + if ! getent passwd hama >/dev/null; then + # Adding system user: hama. + adduser \ + --system \ + --group \ + --home /var/lib/hama \ + --gecos "Apache Hama User" \ + --shell /bin/bash \ + hama >/dev/null + fi + install -d -m 0755 -o hama -g hama /var/log/hama + ;; + + abort-upgrade) + ;; + + *) + echo "preinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 diff --git a/bigtop-packages/src/deb/hama/hama.prerm b/bigtop-packages/src/deb/hama/hama.prerm new file mode 100644 index 00000000..0f2a59a0 --- /dev/null +++ b/bigtop-packages/src/deb/hama/hama.prerm @@ -0,0 +1,57 @@ +#!/bin/sh +# +# 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. + +# prerm script for hama +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * <prerm> `remove' +# * <old-prerm> `upgrade' <new-version> +# * <new-prerm> `failed-upgrade' <old-version> +# * <conflictor's-prerm> `remove' `in-favour' <package> <new-version> +# * <deconfigured's-prerm> `deconfigure' `in-favour' +# <package-being-installed> <version> `removing' +# <conflicting-package> <version> +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + remove|upgrade|deconfigure) + update-alternatives --remove hama-conf /etc/hama/conf.dist || : + ;; + + failed-upgrade) + ;; + + *) + echo "prerm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + diff --git a/bigtop-packages/src/deb/hama/rules b/bigtop-packages/src/deb/hama/rules new file mode 100644 index 00000000..e3f9eb72 --- /dev/null +++ b/bigtop-packages/src/deb/hama/rules @@ -0,0 +1,103 @@ +#!/usr/bin/make -f +# +# 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. +# +# -*- makefile -*- + +# Uncomment this to turn on verbose mode. +export DH_VERBOSE=1 + +# This has to be exported to make some magic below work. +export DH_OPTIONS + +patch: patch-stamp +patch-stamp: + touch $@ + +clean: + dh_testdir + dh_testroot + rm -f *-stamp + dh_clean + rm -Rf debian/tmp + find debian -name .\*swp -exec rm -f {} \; + +build-indep: build-indep-stamp +build-indep-stamp: patch-stamp + # we'll just use the build from the tarball. + rm -rf bigtop-empty + mkdir -p bigtop-empty + sh debian/do-component-build -Drat.basedir=${PWD}/bigtop-empty -Dmaven.repo.local=${HOME}/.m2/repository + mkdir -p debian/tmp + (cd dist/target/hama-${HAMA_BASE_VERSION}/hama-${HAMA_BASE_VERSION} && tar cf - --exclude=debian/\* .) | (cd debian/tmp && tar xf -) + touch $@ + +install: install-indep +install-indep: + dh_testdir + dh_testroot + dh_installdirs + sh -x debian/install_hama.sh \ + --distro-dir=debian \ + --build-dir=debian/tmp \ + --doc-dir=/usr/share/doc/hama-doc \ + --prefix=debian/tmp/hama + rm debian/tmp/hama/usr/lib/hama/lib/hadoop-*.jar + ln -s /usr/lib/hadoop/hadoop-core.jar debian/tmp/hama/usr/lib/hama/lib/hadoop-core.jar + rm debian/tmp/hama/usr/lib/hama/lib/zookeeper-*.jar + ln -s /usr/lib/zookeeper/zookeeper.jar debian/tmp/hama/usr/lib/hama/lib/zookeeper.jar + mkdir -p debian/tmp/hama/etc/default + cp debian/hama.default debian/tmp/hama/etc/default/hama + dh_install --sourcedir=debian/tmp/hama + (dh_lintian) || /bin/true + +binary-common: + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs +# dh_installexamples +# dh_installmenu +# dh_installdebconf +# dh_installlogrotate +# dh_installemacsen +# dh_installpam +# dh_installmime +# dh_python + dh_installinit +# dh_installcron +# dh_installinfo + dh_installman + dh_link + dh_strip + dh_compress + dh_fixperms +# dh_perl + dh_makeshlibs + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary-indep: build-indep install-indep + $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common + +binary-arch: + + +binary: binary-indep +.PHONY: build clean binary-indep binary install-indep binary-arch |