Repository: bigtop Updated Branches: refs/heads/master 005b0204e -> 5b6d1be4f
BIGTOP-1351. Init script for HBase Thrift2 server is missing (Cesar Delgado via rvs) Project: http://git-wip-us.apache.org/repos/asf/bigtop/repo Commit: http://git-wip-us.apache.org/repos/asf/bigtop/commit/5b6d1be4 Tree: http://git-wip-us.apache.org/repos/asf/bigtop/tree/5b6d1be4 Diff: http://git-wip-us.apache.org/repos/asf/bigtop/diff/5b6d1be4 Branch: refs/heads/master Commit: 5b6d1be4ff2ea8ffc29314a5466c1023532f70ea Parents: 005b020 Author: Roman Shaposhnik <[email protected]> Authored: Sun Jun 29 18:26:26 2014 -0700 Committer: Roman Shaposhnik <[email protected]> Committed: Sun Jun 29 18:26:26 2014 -0700 ---------------------------------------------------------------------- .../src/deb/hbase/install_init_scripts.sh | 2 +- bigtop-packages/src/rpm/hbase/SPECS/hbase.spec | 30 +++++++++++++++++++- 2 files changed, 30 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/bigtop/blob/5b6d1be4/bigtop-packages/src/deb/hbase/install_init_scripts.sh ---------------------------------------------------------------------- diff --git a/bigtop-packages/src/deb/hbase/install_init_scripts.sh b/bigtop-packages/src/deb/hbase/install_init_scripts.sh index c32a5b7..9f0f52a 100755 --- a/bigtop-packages/src/deb/hbase/install_init_scripts.sh +++ b/bigtop-packages/src/deb/hbase/install_init_scripts.sh @@ -16,7 +16,7 @@ # limitations under the License. SRC_PKG=hbase -for node in master regionserver rest thrift ; do +for node in master regionserver rest thrift thrift2; do service_pkgdir=debian/$SRC_PKG-$node debdir=$service_pkgdir/DEBIAN mkdir -p $service_pkgdir/etc/init.d/ $debdir http://git-wip-us.apache.org/repos/asf/bigtop/blob/5b6d1be4/bigtop-packages/src/rpm/hbase/SPECS/hbase.spec ---------------------------------------------------------------------- diff --git a/bigtop-packages/src/rpm/hbase/SPECS/hbase.spec b/bigtop-packages/src/rpm/hbase/SPECS/hbase.spec index dcc4b6f..f346952 100644 --- a/bigtop-packages/src/rpm/hbase/SPECS/hbase.spec +++ b/bigtop-packages/src/rpm/hbase/SPECS/hbase.spec @@ -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 rest +%define hbase_services master regionserver thrift thrift2 rest %define hadoop_home /usr/lib/hadoop %define zookeeper_home /usr/lib/zookeeper @@ -195,6 +195,34 @@ Requires: redhat-lsb ThriftServer - this class starts up a Thrift server which implements the Hbase API specified in the Hbase.thrift IDL file. "Thrift is a software framework for scalable cross-language services development. It combines a powerful software stack with a code generation engine to build services that work efficiently and seamlessly between C++, Java, Python, PHP, and Ruby. Thrift was developed at Facebook, and we are now releasing it as open source." For additional information, see http://developers.facebook.com/thrift/. Facebook has announced their intent to migrate Thrift into Apache Incubator. +%package thrift2 +Summary: The Hadoop HBase Thrift2 Interface +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 thrift2 +Thrift2 Server to supersede original Thrift Server. +Still under development. https://issues.apache.org/jira/browse/HBASE-8818 + %package doc Summary: Hbase Documentation Group: Documentation
