Spark任务的数量可以大于执行者核心吗? [英] can number of Spark task be greater than the executor core?

查看:45
本文介绍了Spark任务的数量可以大于执行者核心吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当spark任务的数量大于执行者核心时会发生什么?Spark如何处理这种情况

What happens when number of spark tasks be greater than the executor core? How is this scenario handled by Spark

推荐答案

这与

Is this related to this question?

无论如何,您可以检查 Cloudera使用方法.在调整资源分配"部分中,将说明Spark应用程序可以通过打开动态分配属性来请求执行者.设置群集属性(例如num-executors,executor-cores,executor-memory ...)也很重要,这样火花请求才能适合您的资源管理器可用.

Anyway, you can check this Cloudera How-to. In "Tuning Resource Allocation" section, It's explained that a spark application can request executors by turning on the dynamic allocation property. It's also important to set cluster properties such as num-executors, executor-cores, executor-memory... so that spark requests fit into what your resource manager has available.

这篇关于Spark任务的数量可以大于执行者核心吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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