aboutsummaryrefslogtreecommitdiff
path: root/bigtop-packages/src/deb/hbase
diff options
context:
space:
mode:
authorRoman Shaposhnik <rvs@apache.org>2011-10-20 22:05:52 +0000
committerRoman Shaposhnik <rvs@apache.org>2011-10-20 22:05:52 +0000
commit45725d6483ffd18eaaf92028452f0254e35166c9 (patch)
tree3f5e9bd87085b224f31d0c562b46773d92c9640d /bigtop-packages/src/deb/hbase
parent3ab402e156f438da548f575ccf987798908ca883 (diff)
BIGTOP-134. hbase packages should set up nofile limits automatically
git-svn-id: https://svn.apache.org/repos/asf/incubator/bigtop/trunk@1187091 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'bigtop-packages/src/deb/hbase')
-rw-r--r--bigtop-packages/src/deb/hbase/hadoop-hbase.install1
-rwxr-xr-xbigtop-packages/src/deb/hbase/rules2
2 files changed, 3 insertions, 0 deletions
diff --git a/bigtop-packages/src/deb/hbase/hadoop-hbase.install b/bigtop-packages/src/deb/hbase/hadoop-hbase.install
index 2bdbe2e4..04c77134 100644
--- a/bigtop-packages/src/deb/hbase/hadoop-hbase.install
+++ b/bigtop-packages/src/deb/hbase/hadoop-hbase.install
@@ -1,3 +1,4 @@
/usr/lib/hbase
/usr/bin/hbase
/etc/hbase
+/etc/security/limits.d/hbase.nofiles.conf
diff --git a/bigtop-packages/src/deb/hbase/rules b/bigtop-packages/src/deb/hbase/rules
index 89df28f1..29964ff0 100755
--- a/bigtop-packages/src/deb/hbase/rules
+++ b/bigtop-packages/src/deb/hbase/rules
@@ -49,6 +49,8 @@ install: build
--build-dir=. \
--doc-dir=usr/share/doc/hadoop-hbase-doc \
--prefix=debian/tmp
+ mkdir -p debian/tmp/etc/security/limits.d
+ cp debian/hbase.nofiles.conf debian/tmp/etc/security/limits.d
# Symlink in the dependency jars from their packages. Both of these packages
# provide an unversioned symlink foo.jar -> foo-0.1.2.jar.
rm debian/tmp/usr/lib/hbase/lib/zookeeper-*.jar