aboutsummaryrefslogtreecommitdiff
path: root/bigtop-packages/src/deb/hbase
diff options
context:
space:
mode:
authorSean Mackrory <mackrorysd@gmail.com>2013-04-18 13:46:13 -0700
committerRoman Shaposhnik <rvs@cloudera.com>2013-05-01 17:51:57 -0700
commit2fc2307c743250146d30a6a81b4f1581eac2076e (patch)
tree244f95880d70b44faef47f5fce54f1d0d83e22f9 /bigtop-packages/src/deb/hbase
parenta3537219bd0e6a880f23ed54f6db39f6bf58b96f (diff)
BIGTOP-732. Support running multiple HBase region servers
Diffstat (limited to 'bigtop-packages/src/deb/hbase')
-rwxr-xr-xbigtop-packages/src/deb/hbase/install_init_scripts.sh9
-rwxr-xr-xbigtop-packages/src/deb/hbase/rules4
2 files changed, 10 insertions, 3 deletions
diff --git a/bigtop-packages/src/deb/hbase/install_init_scripts.sh b/bigtop-packages/src/deb/hbase/install_init_scripts.sh
index f60059c3..1f3c151a 100755
--- a/bigtop-packages/src/deb/hbase/install_init_scripts.sh
+++ b/bigtop-packages/src/deb/hbase/install_init_scripts.sh
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
@@ -27,6 +27,13 @@ for node in master regionserver rest thrift ; do
service_pkgdir=debian/$SRC_PKG-$node
debdir=$service_pkgdir/DEBIAN
template="debian/service-init.d.tpl"
+ if [ "$node" == "regionserver" ] ; then
+ # Region servers start from a different template that allows
+ # them to run multiple concurrent instances of the daemon
+ template="debian/regionserver-init.d.tpl"
+ sed -i -e "s|@INIT_DEFAULT_START@|2 3 4 5|" $template
+ sed -i -e "s|@INIT_DEFAULT_STOP@|0 1 6|" $template
+ fi
mkdir -p $service_pkgdir/etc/init.d/ $debdir
sed -e "s|@HBASE_DAEMON@|$node|" -e "s|@CHKCONFIG@|$chkconfig|" $template > $service_pkgdir/etc/init.d/$SRC_PKG-$node
diff --git a/bigtop-packages/src/deb/hbase/rules b/bigtop-packages/src/deb/hbase/rules
index 9a6ddc8a..9c8f68a8 100755
--- a/bigtop-packages/src/deb/hbase/rules
+++ b/bigtop-packages/src/deb/hbase/rules
@@ -36,7 +36,7 @@ override_dh_auto_build:
override_dh_auto_install:
cp debian/hbase.default debian/${hbase_pkg_name}/etc/default/${hbase_pkg_name}
- sh -x debian/install_hbase.sh \
+ bash -x debian/install_hbase.sh \
--build-dir=build \
--conf-dir=/etc/hbase/conf.dist \
--doc-dir=usr/share/doc/${hbase_pkg_name}-doc \
@@ -56,4 +56,4 @@ override_dh_auto_install:
find debian/tmp/usr/lib/${hbase_pkg_name}/bin debian/tmp/usr/lib/${hbase_pkg_name}/lib -name \*.rb -exec chmod 644 {} \;
### webapps should not be executable either
find debian/tmp/usr/lib/${hbase_pkg_name}/hbase-webapps -type f -exec chmod 644 {} \;
- sh debian/install_init_scripts.sh
+ bash debian/install_init_scripts.sh