You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bigtop.apache.org by rv...@apache.org on 2011/10/21 00:05:53 UTC

svn commit: r1187091 - in /incubator/bigtop/trunk/bigtop-packages/src: common/hbase/hbase.nofiles.conf deb/hbase/hadoop-hbase.install deb/hbase/rules rpm/hbase/SPECS/hbase.spec

Author: rvs
Date: Thu Oct 20 22:05:52 2011
New Revision: 1187091

URL: http://svn.apache.org/viewvc?rev=1187091&view=rev
Log:
BIGTOP-134. hbase packages should set up nofile limits automatically

Added:
    incubator/bigtop/trunk/bigtop-packages/src/common/hbase/hbase.nofiles.conf
Modified:
    incubator/bigtop/trunk/bigtop-packages/src/deb/hbase/hadoop-hbase.install
    incubator/bigtop/trunk/bigtop-packages/src/deb/hbase/rules
    incubator/bigtop/trunk/bigtop-packages/src/rpm/hbase/SPECS/hbase.spec

Added: incubator/bigtop/trunk/bigtop-packages/src/common/hbase/hbase.nofiles.conf
URL: http://svn.apache.org/viewvc/incubator/bigtop/trunk/bigtop-packages/src/common/hbase/hbase.nofiles.conf?rev=1187091&view=auto
==============================================================================
--- incubator/bigtop/trunk/bigtop-packages/src/common/hbase/hbase.nofiles.conf (added)
+++ incubator/bigtop/trunk/bigtop-packages/src/common/hbase/hbase.nofiles.conf Thu Oct 20 22:05:52 2011
@@ -0,0 +1 @@
+hbase - nofile 32768

Modified: incubator/bigtop/trunk/bigtop-packages/src/deb/hbase/hadoop-hbase.install
URL: http://svn.apache.org/viewvc/incubator/bigtop/trunk/bigtop-packages/src/deb/hbase/hadoop-hbase.install?rev=1187091&r1=1187090&r2=1187091&view=diff
==============================================================================
--- incubator/bigtop/trunk/bigtop-packages/src/deb/hbase/hadoop-hbase.install (original)
+++ incubator/bigtop/trunk/bigtop-packages/src/deb/hbase/hadoop-hbase.install Thu Oct 20 22:05:52 2011
@@ -1,3 +1,4 @@
 /usr/lib/hbase
 /usr/bin/hbase
 /etc/hbase
+/etc/security/limits.d/hbase.nofiles.conf

Modified: incubator/bigtop/trunk/bigtop-packages/src/deb/hbase/rules
URL: http://svn.apache.org/viewvc/incubator/bigtop/trunk/bigtop-packages/src/deb/hbase/rules?rev=1187091&r1=1187090&r2=1187091&view=diff
==============================================================================
--- incubator/bigtop/trunk/bigtop-packages/src/deb/hbase/rules (original)
+++ incubator/bigtop/trunk/bigtop-packages/src/deb/hbase/rules Thu Oct 20 22:05:52 2011
@@ -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

Modified: incubator/bigtop/trunk/bigtop-packages/src/rpm/hbase/SPECS/hbase.spec
URL: http://svn.apache.org/viewvc/incubator/bigtop/trunk/bigtop-packages/src/rpm/hbase/SPECS/hbase.spec?rev=1187091&r1=1187090&r2=1187091&view=diff
==============================================================================
--- incubator/bigtop/trunk/bigtop-packages/src/rpm/hbase/SPECS/hbase.spec (original)
+++ incubator/bigtop/trunk/bigtop-packages/src/rpm/hbase/SPECS/hbase.spec Thu Oct 20 22:05:52 2011
@@ -66,6 +66,7 @@ Source2: install_hbase.sh
 Source3: hadoop-hbase.sh
 Source4: hadoop-hbase.sh.suse
 Source5: hbase.default
+Source6: hbase.nofiles.conf
 BuildArch: noarch
 Requires: coreutils, /usr/sbin/useradd, /sbin/chkconfig, /sbin/service, hadoop-zookeeper, hadoop >= 0.20.2, hadoop-zookeeper >= 3.3.1
 
@@ -197,6 +198,9 @@ sh %{SOURCE2} \
 %__install -d -m 0755 $RPM_BUILD_ROOT/etc/default/
 %__install -m 0644 $RPM_SOURCE_DIR/hbase.default $RPM_BUILD_ROOT/etc/default/hbase
 
+%__install -d -m 0755 $RPM_BUILD_ROOT/etc/security/limits.d
+%__install -m 0644 %{SOURCE6} $RPM_BUILD_ROOT/etc/security/limits.d/hbase.nofiles.conf
+
 %__install -d  -m 0755  %{buildroot}/%{_localstatedir}/log/hbase
 ln -s %{_localstatedir}/log/hbase %{buildroot}/%{logs_hbase}
 
@@ -241,6 +245,7 @@ getent passwd hbase 2>&1 > /dev/null || 
 
 %defattr(-,root,root)
 %config(noreplace) %{_sysconfdir}/default/hbase
+%config(noreplace) /etc/security/limits.d/hbase.nofiles.conf
 %{hbase_home}
 %{hbase_home}/hbase-*.jar
 %{webapps_hbase}