如何在AWS EMR上重新启动纱线 [英] How to restart yarn on AWS EMR

查看:273
本文介绍了如何在AWS EMR上重新启动纱线的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Hadoop 2.6.0( emr-4.2.0 图片)。我在 yarn-site.xml 中做了一些修改,并希望重新启动纱线以使更改生效。

I am using Hadoop 2.6.0 (emr-4.2.0 image). I have made some changes in yarn-site.xml and want to restart yarn to bring the changes into effect.

有没有一个命令使用我可以做到这一点?

Is there a command using which I can do this?

推荐答案

编辑(10/26/2017 ):有关如何执行此操作的更详细的知识中心文章已由AWS正式发布在此处 -
https://aws.amazon.com/premiumsupport/knowledge-center/restart-service-emr/

Edit (10/26/2017): A more detailed Knowledge Center article on how to do this has been published here by AWS officially - https://aws.amazon.com/premiumsupport/knowledge-center/restart-service-emr/.

您可以ssh进入EMR集群的主节点并运行 -

You can ssh into the master node of your EMR cluster and run -

"sudo /sbin/stop hadoop-yarn-resourcemanager"
"sudo /sbin/start hadoop-yarn-resourcemanager"

命令重新启动Yarn资源管理器。 EMR AMI 4.x.x使用upstart - / sbin / {start,stop,restart}都是/ sbin / initctl的符号链接,这是upstart的一部分。有关更多信息,请参阅 initctl 手册页。

commands to restart the Yarn resource manager. EMR AMI 4.x.x uses upstart - /sbin/{start,stop,restart} are all symlinks to /sbin/initctl, which is part of upstart. See the initctl man page for more information.

或者,您可以按照此处的说明将更改传播到yarn-site.xml - yarn-change-configuration-on-yarn-site-xml

Alternatively, you can follow the instructions here to propagate your changes to yarn-site.xml - yarn-change-configuration-on-yarn-site-xml

这篇关于如何在AWS EMR上重新启动纱线的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆