The newly installed MRS cluster uses the Superior scheduler by default. If the cluster is upgraded from an earlier version, you can switch the YARN scheduler from the Capacity scheduler to the Superior scheduler with a few clicks.
This function is only available for clusters of MRS 3.3.0 or later.
Procedure
sh ${BIGDATA_HOME}/om-server/om/sbin/cleanSwitchScheduler.sh 1
If information similar to the following is displayed, the switch is successful:
Will change scheduler type to SUPERIOR Start to delete all tenant resource. End to delete all tenant resource. Start to delete all resource pool. End to delete all resource pool. ... End to switch scheduler by reset.
sh ${BIGDATA_HOME}/om-server/om/sbin/cleanSwitchScheduler.sh 0
If information similar to the following is displayed, the switch is successful:
Will change scheduler type to CAPACITY Start to delete all tenant resource. End to delete all tenant resource. Start to delete all resource pool. End to delete all resource pool. ... End to switch scheduler by reset.
You can query the scheduler switching logs on the active management node.
Impact on the System
The recommended observation period for scheduler switching is one week. If resource pools, YARN node labels, or tenants are added or deleted during this period, the observation period ends immediately.
Procedure
The following switching modes are available:
0: converts the Capacity scheduler configurations into the Superior scheduler configurations and then switches the Capacity scheduler to the Superior scheduler.
1: converts the Capacity scheduler configurations into the Superior scheduler configurations only.
2: switches the Capacity scheduler to the Superior scheduler only.
Run the following command:
sh ${BIGDATA_HOME}/om-server/om/sbin/switchScheduler.sh -c Cluster ID -m 0
You can choose Cluster, click the cluster name, and choose Cluster Properties on MRS Manager to view the cluster ID.
Start to convert Capacity scheduler to Superior Scheduler, clusterId=1 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.
sh ${BIGDATA_HOME}/om-server/om/sbin/switchScheduler.sh -c Cluster ID -m 1
Start to convert Capacity scheduler to Superior Scheduler, clusterId=1 Start to convert Capacity scheduler configurations to Superior. Please wait... Convert configurations successfully.
sh ${BIGDATA_HOME}/om-server/om/sbin/switchScheduler.sh -c Cluster ID -m 2
Start to convert Capacity scheduler to Superior Scheduler, clusterId=1 Start to switch the Yarn scheduler to Superior. Please wait... Switch the Yarn scheduler to Superior successfully.
Run the following command to switch the Capacity scheduler to the Superior scheduler:
sh ${BIGDATA_HOME}/om-server/om/sbin/switchScheduler.sh -c Cluster ID -m 2
Start to convert Capacity scheduler to Superior Scheduler, clusterId=1 Start to switch the Yarn scheduler to Superior. Please wait... Switch the Yarn scheduler to Superior successfully.
You can query the scheduler switching logs on the active management node.