本文介绍了无法在 EMR 中重新启动 Hue的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法在 AWS EMR Hadoop 集群中重新启动 Hue.我已经修改了hue.ini 文件并想重新启动hue 以应用更改.当我运行servicehue restart"时,它给出了command not found"错误.我可以理解,这一定是因为没有将色调添加到环境路径中.但是,当我运行 bin/hue 时,它​​不会将重新启动作为输入.有没有办法重新启动hue?

I am unable to restart Hue in AWS EMR Hadoop cluster.I have modified hue.ini file and wanted to restart hue for the changes to apply.When I ran "service hue restart", It is giving "command not found" error. I can understand that this must be because hue is not added to the environment path. However, when I run bin/hue, it doesn't take restart as an input. Is there a way to restart hue?

我使用的是 Hue 3.7.1-amzn-7、emr-4.8.4 和 Amazon 2.7.3 Hadoop 发行版.

I am using Hue 3.7.1-amzn-7, emr-4.8.4 and Amazon 2.7.3 Hadoop distribution.

提前致谢.

推荐答案

重启过程取决于您使用的 EMR AMI 版本.

The restart process depends on the EMR AMI version you are using.

关于 EMR 4.x.x &5.x.x AMI 的 ,

服务管理由 upstart 处理,而不是传统的 SysVInit 脚本.因此,预计会出现找不到命令"之类的错误.可以使用 upstart 手册中的 upstart 命令查询服务

Service management is handled by upstart, and not the traditional SysVInit scripts. So, the error like "Command not found" is expected. Services can be queried using the upstart commands found in upstart cookbook

EMR 服务列表:

grep -ir "env DAEMON=" /etc/init/ | cut -d"\"" -f2

hadoop-yarn-resourcemanager
oozie
hadoop-hdfs-namenode
hive-hcatalog-server
hadoop-mapreduce-historyserver
hue
hadoop-kms
hadoop-yarn-proxyserver
hadoop-httpfs
hive-server2
hadoop-yarn-timelineserver

停止/开始色调的示例命令:

status hue
sudo stop hue
sudo start hue
sudo reload hue

在 EMR 3.x.x AMI 上,您尝试使用 service hue restart 的 SysVInit 命令可能会起作用.


On EMR 3.x.x AMI's ,the SysVInit commands that you are trying to use service hue restart might work.

这篇关于无法在 EMR 中重新启动 Hue的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

06-11 15:48