- android - RelativeLayout 背景可绘制重叠内容
- android - 如何链接 cpufeatures lib 以获取 native android 库?
- java - OnItemClickListener 不起作用,但 OnLongItemClickListener 在自定义 ListView 中起作用
- java - Android 文件转字符串
我的组织目前正在使用 Hortonworks HDP 来管理我们的 Hadoop 集群。默认的 YARN 调度器是 Capacity Scheduler。我想切换到 Fair Scheduler。我对 HDP 完全陌生。
在没有集群管理套件的情况下,这将通过编辑 yarn-site.xml 并将 yarn.resourcemanager.scheduler.class
属性更改为org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.FairScheduler
并创建一个额外的 fair-scheduler.xml 文件来指定队列配置,如前所述 here然后通过在 yarn-site.xml 中设置 yarn.scheduler.fair.allocation.file
属性将 YARN 引用到该配置。
现在在 Ambari 中,虽然可以通过 UI 更改 yarn.resourcemanager.scheduler.class
属性,并添加新的自定义属性 yarn.scheduler.fair.allocation。文件
,我无法(看在上帝的份上)找到让 ambari 读取 fair-scheduler.xml 而不是 capacity-scheduler.xml 的方法。
所以我的问题是;我如何通过 Ambari 切换到公平调度程序?一定有一个简单的方法,对吧?
最佳答案
在您的 RM 节点上,将 yarn.scheduler.fair.allocation.file 设置为您的 fair-scheduler.xml 的完整路径(或在 ambari 下的自定义 yarn-site 中)
tail -n 1000 /var/log/hadoop-yarn/yarn/hadoop-yarn-resourcemanager-master.log | grep "fair-scheduler.xml"
重新启动 ResourceManager 后,您应该会看到它正在加载您的文件:
2019-02-19 15:49:26,358 INFO fair.AllocationFileLoaderService (AllocationFileLoaderService.java:reloadAllocations(230)) - Loading allocation file file:/usr/hdp/current/hadoop-client/conf/fair-scheduler.xml
适用于 Hdp 3.1.1,也可能适用于 3.0.0
关于hadoop - 在 Hortonworks 数据平台上从 Capacity Scheduler 切换到 Fair Scheduler,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38208845/
假设我有一大组数据,其中每个数据都有几个可搜索的列(例如颜色、高度、宽度等),这样用户就可以发出诸如“所有红色项目”或“所有具有宽度的绿色项目”之类的搜索50 岁以下。 是否有一种既定的算法可以让我根
我需要得到一个数字的平均值,但不是小数形式,我需要它的“公平”整数形式。我不知道这是否是解释它的最佳方式,所以这里有一些例子。 例子: 51 / 4 = 12.75 但我需要更多的东西: 51 / 4
我正在尝试运行 Fair Scheduler,但它没有将 Map 任务分配给某些节点,只有一个作业正在运行。我的理解是,公平调度程序将使用 conf 插槽限制,除非存在多个作业,此时公平计算开始。我还
当我有一个带分数的排序集时,即使多个项目具有相同的分数,我也希望获得正确的排名。 例如,当有 5 个得分为 1、2、2、2、3 的项目时,我希望这三个中心项目具有相同的排名 (1),而最高分获得排名
具有类 Reentrant(true) 锁的 Lock 接口(interface)的工作方式是它使用 阻塞队列 存储想要获取 的线程锁 .以这种方式“先来,先出去”的线程 - FIFO。一切都清楚。
我需要实现一个公平的排队系统,以便根据某个消息 header 的值,针对当前排队的消息上该 header 的所有值,以循环方式处理消息。 系统中的消息自然地按某些属性进行分组,其中有数千个可能的值,并
我打算做的是限制可以将任务发送到testmonitor队列的用户或组。 在按如下所示设置AclSubmitApps之后,我仍然可以在用户testmonitor中提交配置单元任务,该任务的队列通过set
ReentrantReadWriteLock 有公平和非公平(默认)模式,但是文档太难理解了。 我怎么理解呢?如果有一些代码示例来演示它,那就太好了。 更新 如果我有一个写线程和很多读线程,哪种模式更
在 ConcurrentHashMap 中,我们有基本上扩展了 ReentrantLock 的段。 static final class Segment extends ReentrantLock i
Spark调度器如何选择:FIFO还是FAIR? Spark Scheduler 和 YARN Scheduler 有什么区别? 最佳答案 当您使用 spark-submit 或任何其他方式在集群中提
当调用notify_one()时,是否有关于在atomic_flag上调用wait()的线程被唤醒的顺序的公平性信息。它们是否按照进入 wait() 的确切顺序被唤醒,可以说是 FIFO 吗? 原子标
这是我第一次尝试配置YARN调度程序,但无法正常运行。该群集最初用作FIFO,而我正在尝试使作业并行运行。我已经添加到yarn-site.xml的顶部 yarn.resourcemana
我有一个带有 spark standalone 集群管理器的 2 节点集群。我在 Scala 多线程中使用相同的 sc 触发了多个作业。我发现我的作业是一个接一个地安排的,因为 FIFO 性质所以我尝
我有一份系统用户的列表,这些用户正在等待分配一个帐户。 分配算法非常简单,分配应该尽可能公平,这意味着如果我有 40 个帐户和 20 个系统用户,我需要为每个系统用户分配 2 个帐户。 如果我有 41
在 Ruby 上使用 combination 方法, [1, 2, 3, 4, 5, 6].combination(2).to_a #=> [[1, 2], [1, 3], [1, 4], [1, 5
我有一个关于 YARN“Fair Scheduler”的基本问题。根据the definition “公平调度程序 - 公平调度是一种将资源分配给应用程序的方法,以便所有应用程序平均随着时间的推移获得
在以下情况下,如何确定函数返回 0 或 1 的概率: Let the function_A return 0 with probability 40% and 1 with probability 6
关闭。这个问题是off-topic .它目前不接受答案。 想改进这个问题? Update the question所以它是on-topic对于堆栈溢出。 8年前关闭。 Improve this que
这个问题已经有答案了: Return bestMove in minimax algorithm for tictactoe (3 个回答) 已关闭 9 年前。 我正在做一个科学博览会项目,用不同的策
我被困在竞争性编程挑战中: https://www.hackerrank.com/challenges/fair-cut/problem 我尝试了什么:使用数组的中位数对数组进行排序,并使用 2 个指
我是一名优秀的程序员,十分优秀!