【问题标题】:Unable to restart Hue in AWS EMR cluster无法在 AWS EMR 集群中重新启动 Hue
【发布时间】:2021-05-19 19:01:38
【问题描述】:

我在 AWS 中有一个 EMR 集群,在 Cloudformation 模板中进行了配置。在我的模板中,我有一个在主节点上执行脚本的步骤。此脚本的目的是更改 hue.ini 文件。 脚本的最后一步是重新启动 Hue,以使更改生效。我正在关注this 文档以获取正确的命令。此文档是明确的 Do Not run restart

运行 sudo systemctl stop hue 后跟 sudo systemctl start hue 会使 Hue 处于以下状态(根据 sudo systemctl status hue):

[root@ip-10-x-xxx-xxx ~]# sudo systemctl status hue
● hue.service - Hue web server
   Loaded: loaded (/etc/systemd/system/hue.service; enabled; vendor preset: disabled)
   Active: activating (auto-restart) (Result: exit-code) since Wed 2021-05-19 18:44:27 UTC; 2s ago
  Process: 22743 ExecStart=/etc/init.d/hue start (code=exited, status=1/FAILURE)
 Main PID: 17508 (code=exited, status=1/FAILURE)
    Tasks: 0
   Memory: 0B
   CGroup: /system.slice/hue.service

May 19 18:44:27 ip-10-x-xxx-xxx systemd[1]: Failed to start Hue web server.
May 19 18:44:27 ip-10-x-xxx-xxx systemd[1]: Unit hue.service entered failed state.
May 19 18:44:27 ip-10-x-xxx-xxx systemd[1]: hue.service failed.

在实例上再次手动运行 start 会返回:

Job for hue.service failed because the control process exited with error code. See "systemctl status hue.service" and "journalctl -xe" for details.

这些日志只是显示与上面相同。我还检查了this 类似的问题,但答案对我不起作用。

电子病历:emr-6.2.0 色相:4.8.0

【问题讨论】:

    标签: amazon-web-services amazon-emr hue


    【解决方案1】:

    经过更多研究,这似乎不是最好的方法。最好的方法是在我的 Cloudformation 模板中包含一个hue-ini 分类锁。这将应用更改并为您执行所需的重新启动。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2016-02-19
      • 1970-01-01
      • 1970-01-01
      • 2019-04-08
      • 2019-01-31
      • 2017-06-21
      • 1970-01-01
      相关资源
      最近更新 更多