解决 Please check the values of 'yarn.scheduler.maximum-allocation-mb' and/or 'yarn.nodemanager.resource.memory-mb'.
时间: 2024-02-21 10:02:18 浏览: 149
hadoop单节点安装.docx
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.
阅读全文