Spark Master vs纱线资源经理

发布于 2025-01-19 04:43:42 字数 47 浏览 2 评论 0原文

YARN如何为Spark应用程序分配资源以及Spark以独立模式运行时如何完成?

How does yarn allocate resources for spark applications and how it is done when spark runs in standalone mode?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

╰ゝ天使的微笑 2025-01-26 04:43:42

您可以在运行 spark-submit 时定义驱动程序内存大小、部署模式、执行程序数量及其内存大小。如果未提供选项,则使用 spark-env 和/或 yarn-site.xml 中的默认值。然后将安排该数量的资源。

例如,如果启用了动态执行程序执行,并且您正在从 HDFS 读取数据,则可能会启动或多或少的执行程序,具体取决于数据包含的文件块数量

You define the driver memory size, deployment mode, number of executors and their memory sizes when you run spark-submit. If no options are provided, the defaults from spark-env and/or yarn-site.xml are used. Then that amount of resources will be scheduled.

If dynamic executor execution is enabled, and you're reading data from HDFS, for example, then more or less executors may start, depending on how many file blocks the data contains

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文