ports/databases/hbase/files/hbase_master.in
Dmitry Sivachenko fa41c5db88 New port: apache hbase:
Apache HBase is an open-source, distributed, versioned, non-relational database
modeled after Google's Bigtable: A Distributed Storage System for Structured
Data by Chang et al.  Just as Bigtable leverages the distributed data storage
provided by the Google File System, Apache HBase provides Bigtable-like
capabilities on top of Hadoop and HDFS.
2014-07-28 20:40:49 +00:00

31 lines
627 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: hbase_master
# REQUIRE: LOGIN
# KEYWORD: shutdown
#
# hbase_master_enable (bool): Set to NO by default.
# Set it to YES to enable HBase master.
. /etc/rc.subr
name=hbase_master
rcvar=hbase_master_enable
load_rc_config "${name}"
: ${hbase_master_enable:=NO}
: ${hbase_master_user:=%%HBASE_USER%%}
command="%%PREFIX%%/hbase/bin/hbase-daemon.sh"
command_args='--config %%ETCDIR%% start master'
stop_cmd=hbase_master_stop
hbase_master_stop () {
su -m ${hbase_master_user} -c "${command} --config %%ETCDIR%% stop master"
}
run_rc_command "$1"