Help Center/ MapReduce Service/ Component Operation Guide (LTS)/ Using YARN/ Common Issues About Yarn/ Why Mounted Directory for Container is Not Cleared After the Completion of the Job While Using CGroups?
Updated on 2025-08-22 GMT+08:00

Why Mounted Directory for Container is Not Cleared After the Completion of the Job While Using CGroups?

Question

Why mounted directory for Container is not cleared after the completion of the job while using CGroups?

Answer

The mounted path for the Container should be cleared even if job is failed.

This happens due to the deletion timeout. Some task takes more time to complete than the deletion time.

To avoid this issue, you can change the deletion timeout duration by performing the following operations:

  1. Log in to FusionInsight Manager.

    For details about how to log in to FusionInsight Manager, see Accessing MRS FusionInsight Manager.

  2. Choose Cluster > Services > Yarn > Configurations > All Configurations.
  3. Search for yarn.nodemanager.linux-container-executor.cgroups.delete-timeout-ms and change its value as required.

    This parameter specifies the time interval at which the Linux container executor should try cleaning up cgroups entry when cleaning up a container. The default value is 10000.

  4. Save the settings. Restart the expired service or instance for the configuration to take effect.