Help Center/ MapReduce Service/ User Guide (Kuala Lumpur Region)/ FAQs/ Big Data Service Development/ How Do I Check Whether the ResourceManager Configuration of Yarn Is Correct?
Updated on 2022-12-14 GMT+08:00

How Do I Check Whether the ResourceManager Configuration of Yarn Is Correct?

  1. Log in to MRS Manager and choose Services > Yarn > Instance.
  2. Synchronize the configuration between the two ResourceManager nodes.

    Perform the following steps on each ResourceManager node:
    1. Click the name of the ResourceManager node, and choose More > Synchronize Configuration.
    2. In the dialog box displayed, deselect Restart services or instances whose configurations have expired and click Yes.
      Figure 1 Synchronization configurations

  3. Log in to the Master nodes as user root.
  4. Run the cd /opt/Bigdata/MRS_Current/*_*_ResourceManager/etc_UPDATED/ command to go to the etc_UPDATED directory.
  5. Run the grep '\.queues' capacity-scheduler.xml -A2 command to display all configured queues and check whether the queues are consistent with those displayed on Manager.

    root-default is hidden on the Manager page.

  6. Run the grep '\.capacity</name>' capacity-scheduler.xml -A2 command to display the value of each queue and check whether the value of each queue is the same as that displayed on Manager. Check whether the sum of the values configured for all queues is 100.

    • If the sum is 100, the configuration is correct.
    • If the sum is not 100, the configuration is incorrect. Perform the following steps to rectify the fault.

  7. Log in to MRS Manager, and select Hosts.
  8. Determine the active Master node. The host name of the active Master node starts with a solid pentagon.
  9. Log in to the active Master node as user root.
  10. Run the su - omm command to switch to user omm.
  11. Run the sh /opt/Bigdata/om-0.0.1/sbin/restart-controller.sh command to restart the controller when no operation is being performed on Manager.

    Restarting the controller will not affect the big data component services.

  12. Repeat 1 to 6 to synchronize ResourceManager configurations and check whether the configurations are correct.

    If the latest configuration has not been loaded after the configuration synchronization is complete, a message will be displayed on the Manager page indicating that the configuration has expired. However, this will not affect services. The latest configuration will be automatically loaded when the component restarts.