You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bigtop.apache.org by bm...@apache.org on 2012/03/21 01:20:49 UTC

svn commit: r1303228 - in /incubator/bigtop/branches/hadoop-0.23/bigtop-packages/src: deb/hbase/control deb/hbase/install_init_scripts.sh rpm/hbase/SPECS/hbase.spec

Author: bmahe
Date: Wed Mar 21 00:20:49 2012
New Revision: 1303228

URL: http://svn.apache.org/viewvc?rev=1303228&view=rev
Log:
BIGTOP-475. Provide initscript for the REST HBase gateway

Modified:
    incubator/bigtop/branches/hadoop-0.23/bigtop-packages/src/deb/hbase/control
    incubator/bigtop/branches/hadoop-0.23/bigtop-packages/src/deb/hbase/install_init_scripts.sh
    incubator/bigtop/branches/hadoop-0.23/bigtop-packages/src/rpm/hbase/SPECS/hbase.spec

Modified: incubator/bigtop/branches/hadoop-0.23/bigtop-packages/src/deb/hbase/control
URL: http://svn.apache.org/viewvc/incubator/bigtop/branches/hadoop-0.23/bigtop-packages/src/deb/hbase/control?rev=1303228&r1=1303227&r2=1303228&view=diff
==============================================================================
--- incubator/bigtop/branches/hadoop-0.23/bigtop-packages/src/deb/hbase/control (original)
+++ incubator/bigtop/branches/hadoop-0.23/bigtop-packages/src/deb/hbase/control Wed Mar 21 00:20:49 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/branches/hadoop-0.23/bigtop-packages/src/deb/hbase/install_init_scripts.sh
URL: http://svn.apache.org/viewvc/incubator/bigtop/branches/hadoop-0.23/bigtop-packages/src/deb/hbase/install_init_scripts.sh?rev=1303228&r1=1303227&r2=1303228&view=diff
==============================================================================
--- incubator/bigtop/branches/hadoop-0.23/bigtop-packages/src/deb/hbase/install_init_scripts.sh (original)
+++ incubator/bigtop/branches/hadoop-0.23/bigtop-packages/src/deb/hbase/install_init_scripts.sh Wed Mar 21 00:20:49 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/branches/hadoop-0.23/bigtop-packages/src/rpm/hbase/SPECS/hbase.spec
URL: http://svn.apache.org/viewvc/incubator/bigtop/branches/hadoop-0.23/bigtop-packages/src/rpm/hbase/SPECS/hbase.spec?rev=1303228&r1=1303227&r2=1303228&view=diff
==============================================================================
--- incubator/bigtop/branches/hadoop-0.23/bigtop-packages/src/rpm/hbase/SPECS/hbase.spec (original)
+++ incubator/bigtop/branches/hadoop-0.23/bigtop-packages/src/rpm/hbase/SPECS/hbase.spec Wed Mar 21 00:20:49 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 hadoop-annotations,hadoop-auth,hadoop-common,hadoop-hdfs,hadoop-mapreduce-client-common,hadoop-mapreduce-client-core,hadoop-yarn-api,hadoop-yarn-common 
@@ -173,7 +173,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}
 
@@ -208,6 +207,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}
@@ -313,3 +338,4 @@ fi
 %service_macro master
 %service_macro thrift
 %service_macro regionserver
+%service_macro rest