Author: bmahe Date: Wed Mar 21 00:20:04 2012 New Revision: 1303227 URL: http://svn.apache.org/viewvc?rev=1303227&view=rev Log: BIGTOP-475. Provide initscript for the REST HBase gateway
Modified: incubator/bigtop/trunk/bigtop-packages/src/deb/hbase/control incubator/bigtop/trunk/bigtop-packages/src/deb/hbase/install_init_scripts.sh incubator/bigtop/trunk/bigtop-packages/src/rpm/hbase/SPECS/hbase.spec Modified: incubator/bigtop/trunk/bigtop-packages/src/deb/hbase/control URL: http://svn.apache.org/viewvc/incubator/bigtop/trunk/bigtop-packages/src/deb/hbase/control?rev=1303227&r1=1303226&r2=1303227&view=diff ============================================================================== --- incubator/bigtop/trunk/bigtop-packages/src/deb/hbase/control (original) +++ incubator/bigtop/trunk/bigtop-packages/src/deb/hbase/control Wed Mar 21 00:20:04 2012 @@ -48,6 +48,12 @@ Description: HRegionServer makes a set o It checks in with the HMaster. There are many HRegionServers in a single HBase deployment. +Package: hbase-rest +Architecture: all +Depends: hbase (= ${source:Version}) +Description: The Apache HBase REST gateway + The Apache HBase REST gateway + Package: hbase-thrift Architecture: all Depends: hbase (= ${source:Version}) Modified: incubator/bigtop/trunk/bigtop-packages/src/deb/hbase/install_init_scripts.sh URL: http://svn.apache.org/viewvc/incubator/bigtop/trunk/bigtop-packages/src/deb/hbase/install_init_scripts.sh?rev=1303227&r1=1303226&r2=1303227&view=diff ============================================================================== --- incubator/bigtop/trunk/bigtop-packages/src/deb/hbase/install_init_scripts.sh (original) +++ incubator/bigtop/trunk/bigtop-packages/src/deb/hbase/install_init_scripts.sh Wed Mar 21 00:20:04 2012 @@ -16,7 +16,7 @@ # limitations under the License. SRC_PKG=hbase -for node in master regionserver thrift ; do +for node in master regionserver rest thrift ; do service_pkgdir=debian/$SRC_PKG-$node debdir=$service_pkgdir/DEBIAN template="debian/service-init.d.tpl" 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=1303227&r1=1303226&r2=1303227&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 Wed Mar 21 00:20:04 2012 @@ -23,7 +23,7 @@ %define webapps_hbase %{hbase_home}/hbase-webapps %define man_dir %{_mandir} %define hbase_username hbase -%define hbase_services master regionserver thrift +%define hbase_services master regionserver thrift rest %define hadoop_home /usr/lib/hadoop %define zookeeper_home /usr/lib/zookeeper %define hbase_jar_deps %{hadoop_home}/hadoop-core.jar %{zookeeper_home}/zookeeper.jar @@ -154,7 +154,6 @@ HRegionServer makes a set of HRegions av %package thrift Summary: The Hadoop HBase Thrift Interface Group: System/Daemons -Provides: %{name}-thrift Requires: %{name} = %{version}-%{release} Requires(pre): %{name} = %{version}-%{release} @@ -189,6 +188,32 @@ Obsoletes: %{name}-docs %description doc Documentation for Hbase +%package rest +Summary: The Apache HBase REST gateway +Group: System/Daemons +Requires: %{name} = %{version}-%{release} +Requires(pre): %{name} = %{version}-%{release} + +%if %{?suse_version:1}0 +# Required for init scripts +Requires: insserv +%endif + +%if 0%{?mgaversion} +# Required for init scripts +Requires: initscripts +%endif + +# CentOS 5 does not have any dist macro +# So I will suppose anything that is not Mageia or a SUSE will be a RHEL/CentOS/Fedora +%if %{!?suse_version:1}0 && %{!?mgaversion:1}0 +# Required for init scripts +Requires: redhat-lsb +%endif + + +%description rest +The Apache HBase REST gateway %prep %setup -n %{name}-%{hbase_base_version} @@ -294,3 +319,4 @@ fi %service_macro master %service_macro thrift %service_macro regionserver +%service_macro rest