崩溃时自动重启HBase

时间:2014-07-11 07:43:06

标签: crash hbase restart

我在独立模式下使用HBase 0.98.3。有没有办法在崩溃时重启HBase?我试过监督没有成功。

谢谢。

1 个答案:

答案 0 :(得分:1)

我在ubuntu设置中使用upstart来实现这一点。

这是我的食谱,但是YMMV。

# hbase-master - HBase Master
#

description     "HBase Master"

start on (local-filesystems
        and net-device-up IFACE!=lo)
stop on runlevel[!2345]

respawn
console log
setuid hbase
setgid hbase
nice 0
oom score -700
limit nofile 32768 32768
limit memlock unlimited unlimited

exec /usr/lib/hbase/bin/hbase master start