Hadoop技术内幕(YARN)第4章问题部分答案

问题1:改写DistributedShell程序,使得每个container运行在不同节点上(目前是随机的,可能运行在任意节点上)。

问题2:改写DistributedShell程序,使得某个用户指定的命令可以在集群的每个节点上仅执行一次。

参考 http://tech.ddvip.com/2014-04/1396616894209607.html

http://mail-archives.apache.org/mod_mbox/hadoop-common-user/201304.mbox/%3CB07FBECD-847C-4A3F-A809-24B5A9C88B5A@hortonworks.com%3E

http://search-hadoop.com/m/0FFsG10ZmEi1&subj=Re+YARN+specify+hosts+in+ContainerRequest

原文地址:https://www.cnblogs.com/Cherise/p/4378481.html