2014-07-11 64 views

回答

1

我使用upstart來實現這一點,在Ubuntu的設置。

這是我的食譜,但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 
+0

它與小定製合作,謝謝! –