【问题标题】:Restarting HBase automatically when it crashes崩溃时自动重启 HBase
【发布时间】:2014-07-11 07:43:06
【问题描述】:

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

谢谢。

【问题讨论】:

    标签: crash hbase restart


    【解决方案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
    

    【讨论】:

      猜你喜欢
      • 2017-02-27
      • 1970-01-01
      • 2011-11-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多