切换调度器 从Capacity调度器切换到Superior调度器 1. 确保Yarn服务状态正常。 使用管理员帐号,登录FusionInsight Manager系统。 选择“集群 > 待操作的集群名称 > 服务”,查看Yarn服务的状态是否正常。 2. 使用omm用户登录主管理节点。 3. 执行调度器切换。 调度器切换分为三种模式: 0:将Capacity调度器配置转换到Superior,然后将Capacity调度器切换到Superior。 1:只将Capacity调度器配置转换到Superior。 2:只将Capacity调度器切换到Superior。 集群环境相对简单,租户数小于20的情况下,建议执行模式0,将Capacity调度器配置转换到Superior的同时切换调度器。 执行以下命令。 sh ${BIGDATAHOME}/omserver/om/sbin/switchScheduler.sh c 集群ID m 0 说明 “集群ID”为需执行操作集群ID号,可在FusionInsight Manager的“集群 > 待操作集群的名称 > 集群属性”中查看。 Start to convert Capacity scheduler to Superior Scheduler, clusterId1 Start to convert Capacity scheduler configurations to Superior. Please wait... Convert configurations successfully. Start to switch the Yarn scheduler to Superior. Please wait... Switch the Yarn scheduler to Superior successfully. 集群环境相对复杂,租户信息复杂,且要求将capacity调度器队列配置信息保留到Superior调度器,建议先执行模式1,将Capacity调度器配置信息转化成Superior配置信息,对转换过来的配置信息做检查后,再执行模式2,将Capacity调度器切换到Superior。 a. 执行以下命令,将Capacity调度器配置信息转化成Superior配置信息。 sh ${BIGDATAHOME}/omserver/om/sbin/switchScheduler.sh c 集群ID m 1 Start to convert Capacity scheduler to Superior Scheduler, clusterId1 Start to convert Capacity scheduler configurations to Superior. Please wait... Convert configurations successfully. b. 执行以下命令,将Capacity调度器切换到Superior。 sh ${BIGDATAHOME}/omserver/om/sbin/switchScheduler.sh c 集群ID m 2 Start to convert Capacity scheduler to Superior Scheduler, clusterId1 Start to switch the Yarn scheduler to Superior. Please wait... Switch the Yarn scheduler to Superior successfully. 不保存Capacity调度器队列配置,建议直接执行模式2,只切换调度器,不转换配置。 a. 登录FusionInsight Manager,删除除了default租户的所有租户。 b. 登录FusionInsight Manager,删除除了default资源池的所有资源池。 执行以下命令,将Capacity调度器切换到Superior。 sh ${BIGDATAHOME}/omserver/om/sbin/switchScheduler.sh c 集群ID m 2 Start to convert Capacity scheduler to Superior Scheduler, clusterId1 Start to switch the Yarn scheduler to Superior. Please wait... Switch the Yarn scheduler to Superior successfully. 说明 登录主管理节点,可查看调度器切换的日志信息。 ${BIGDATALOGHOME}/controller/aos/switchscheduler.log ${BIGDATALOGHOME}/controller/aos/aos.log