【问题标题】:Ambari Thrift server auto restart at oomAmbari Thrift 服务器在 oom 时自动重启
【发布时间】:2019-03-22 14:08:28
【问题描述】:

我正在使用 Ambari 2.6.2.2 并安装了 Hbase,为此我启动了 thrift 服务器。

如何将 thrift 服务器配置为在启动时启动?

现在,我只将 hbase 配置为使用 ambari 中的“服务自动启动”在启动时启动。

另外,如何配置 thrift 服务器在 oom 发生时重启?

谢谢

【问题讨论】:

    标签: thrift ambari


    【解决方案1】:

    似乎没有办法直接从 Ambari 执行此操作。

    我设法在启动时启动并使用 Supervisor 自动重启。 这是 Thrift 和 Rest 服务器的主管配置文件。

    [program:hbase-thrift]
    command=hbase thrift start -p 9090 --infoport 9095
    stderr_logfile = /var/log/supervisor/thrift-stderr.log
    stdout_logfile = /var/log/supervisor/thrift-stdout.log
    autorestart=true
    user=hbase
    stdout_logfile_backups=5
    stderr_logfile_backups=5
    
    
    [program:hbase-rest]
    command=hbase rest start -p 9080 --infoport 9085
    stderr_logfile = /var/log/supervisor/rest-stderr.log
    stdout_logfile = /var/log/supervisor/rest-stdout.log
    autorestart=true
    user=hbase
    stdout_logfile_backups=5
    stderr_logfile_backups=5
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-08-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多