我可以在 Amazon Elastic MapReduce 中运行 .NET 应用程序(或 .NET dll 中的方法)吗?
我需要的是一台功能强大的机器,每天运行我的 .NET 代码一小时。 我无法使用 EC2,因为它会在关闭时丢失我的所有数据。 我需要一台可以在特定时间启动的虚拟 PC,并且该 PC 应该自动启动我的 .exe/service/whatever。 我可以要求 Amazon MapReduce 启动 Windows 实例并执行我的代码吗?
What I need is a powerful machine that will run my .NET code one hour a day. I can't use EC2 cause it will loose all my data on shutdown. I need a virtual PC that I can start at specific time, and this PC should start my .exe/service/whatever automatically. Can I ask Amazon MapReduce to start a Windows instance and execute my code?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Amazon MapReduce 是一个用于处理大数据块的 Web 服务 - 不是运行 .net 代码的地方。
EC2 是虚拟服务器托管 - 您能否将数据保存到外部 Web 服务、您自己的计算机或 S3 上? 该库可从 .net 获取: http://developer.amazonwebservices.com/连接/entry.jspa?externalID=129
Amazon MapReduce is a webservice for processing big chunk of data - not somewhere to run your .net code.
EC2 is virtual server hosting - can you save your data to an external webservice, on your own machine, or S3? This library is available from .net: http://developer.amazonwebservices.com/connect/entry.jspa?externalID=129
Amazon Elastic MapReduce 被指定与 EC2 和 S3 集成,为密集数据处理应用程序提供基础设施。
MapReduce 以作业流的概念为中心,其中每个作业可以包含一个或多个步骤。 每个步骤从 S3 获取一些数据,将其分发到配置的 EC2 实例,然后将结果写回 S3。
因此,基本上您应该将应用程序和数据上传到 S3,然后配置所需的 EC2 实例数量和类型,指定应用程序和数据在 S3 上的位置,然后开始作业。 您可以通过多种方式开始作业:登录 AWS 管理控制台,或者使用现有的 API 或命令行工具。
还有一个 Amazon 提供的用于 MapReduce 的 C# 库可以提供帮助。
但是,您应该注意,您的应用程序需要采用 MapReduce 编程模型才能分布式运行,因此您实际上不能只运行任何 .Net 代码。
另一篇文章提供了一些与 .Net 相关的很好的答案与 MapReduce 实现相关的框架。
Amazon Elastic MapReduce is designated to be integrated with EC2 and S3, providing the infrastructure for intense data processing applications.
MapReduce is centered around the concept of Job Flow, where each Job can contain one or more steps. Each step takes some data from S3, distributes it to the EC2 instances configured and then writes the results back to S3.
So basically you're supposed to upload your application and data to S3, then configure how many and what type of EC2 instances you want, specify the location of your application and your data on S3 and then start the job. There are several ways in which you can start the job: either logging in to the AWS Management Console, or using the exisitng APIs or the Command Line tools.
There is also a C# Library for MapReduce available from Amazon that can help.
However, you should note that your application needs to employ to MapReduce programming model to be able to run distributedly, so you can't really just run any .Net code.
There's another post here with some good answers relating to .Net frameworks in regards to the MapReduce implementation.