yarn.nodemanager.resource.memory-m设置过大会怎么样
时间: 2024-06-06 17:08:06 浏览: 1
如果将yarn.nodemanager.resource.memory-m设置过大,可能会导致以下问题:
1. 内存不足:如果设置的内存超过了节点实际可用的内存,可能会导致节点内存不足,从而导致应用程序崩溃或者运行缓慢。
2. 系统不稳定:如果设置的内存过大,可能会导致系统不稳定,因为操作系统需要为应用程序和其他进程分配内存。
3. 性能下降:如果设置的内存过大,可能会导致内存碎片化,从而导致性能下降。
因此,应该根据节点实际可用内存和应用程序的需求来设置yarn.nodemanager.resource.memory-m的值,以避免以上问题。
相关问题
yarn.nodemanager.resource.memory-mb
yarn.nodemanager.resource.memory-mb是一个YARN配置属性,用于设置每个节点管理器可用于容器的最大内存量(以MB为单位)。这个属性的值应该根据集群的硬件配置和应用程序的内存需求来设置。如果节点管理器上的容器请求的内存超过了这个值,它们将被拒绝并且不会被分配。
解决 Please check the values of 'yarn.scheduler.maximum-allocation-mb' and/or 'yarn.nodemanager.resource.memory-mb'.
To solve the issue of checking the values of 'yarn.scheduler.maximum-allocation-mb' and/or 'yarn.nodemanager.resource.memory-mb' in a YARN cluster, you can follow these steps:
1. Open a terminal and SSH into the node where the YARN ResourceManager is running.
2. Run the following command to check the value of 'yarn.scheduler.maximum-allocation-mb':
```
yarn getconf -confKey yarn.scheduler.maximum-allocation-mb
```
This command will display the current value of 'yarn.scheduler.maximum-allocation-mb' in the YARN cluster.
3. Run the following command to check the value of 'yarn.nodemanager.resource.memory-mb':
```
yarn getconf -confKey yarn.nodemanager.resource.memory-mb
```
This command will display the current value of 'yarn.nodemanager.resource.memory-mb' in the YARN cluster.
4. If the values are not set to the desired values, you can set them using the following commands:
```
yarn config -set yarn.scheduler.maximum-allocation-mb <value>
yarn config -set yarn.nodemanager.resource.memory-mb <value>
```
Replace <value> with the desired value in megabytes (MB).
5. Restart the YARN ResourceManager and NodeManagers for the changes to take effect.
After following these steps, you should be able to check and set the values of 'yarn.scheduler.maximum-allocation-mb' and 'yarn.nodemanager.resource.memory-mb' in your YARN cluster.
相关推荐
![msi](https://img-home.csdnimg.cn/images/20210720083646.png)
![gz](https://img-home.csdnimg.cn/images/20210720083447.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)