Ambari Thrift服务器在oom上自动重启

时间:2019-03-22 14:08:29

标签: thrift ambari

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

如何配置Thrift服务器以在启动时启动?

现在,我仅配置了hbase以使用ambari中的“服务自动启动”来启动。

还,如何配置thrift服务器以在发生oom时重新启动?

谢谢

1 个答案:

答案 0 :(得分:0)

似乎没有办法直接从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
相关问题