简体   繁体   English

API获取AWS EMR中任务实例组实例的数量

[英]API to get count of task instance group instances in AWS EMR

I want to get the count of task instance groups instances in AWS EMR. 我想获取AWS EMR中任务实例组实例的数量。

For this, I used Cloudwatch to check heartbeat of each task instance groups instances. 为此,我使用Cloudwatch来检查每个任务实例组实例的心跳。 But I think, at the end EMR is a framework that uses hadoop, and hadoop's master must have information of live task nodes. 但是我认为,最终EMR是一个使用hadoop的框架,并且hadoop的主服务器必须具有实时任务节点的信息。

Can anyone please tell me the metadata link(or any file location) to get this information ? 任何人都可以告诉我元数据链接(或任何文件位置)以获取此信息吗?

I have written a Java tool to dynamically resize an EMR cluster during the processing. 我编写了一个Java工具来在处理过程中动态调整EMR集群的大小。 It has some code to get the count of instances in an instance, as part of it. 它包含一些代码来获取实例中实例的数量。 Maybe this will be what you are looking for. 也许这就是您想要的。 Check it out at: 在以下位置查看:

http://www.lopakalogic.com/articles/hadoop-articles/dynamically-resize-emr/ http://www.lopakalogic.com/articles/hadoop-articles/dynamically-resize-emr/

The source code is available on Github 源代码在Github上可用

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM