hadoop (The value of property yarn.resourcemanager.zk-address must not be null)
时间: 2024-05-25 14:15:21 浏览: 126
This error message indicates that the property "yarn.resourcemanager.zk-address" is not set or has a null value in the Hadoop configuration file.
To resolve this issue, you need to update the configuration file to set the value for this property to the correct ZooKeeper address.
Here are the steps to follow:
1. Locate the Hadoop configuration file (usually named core-site.xml or yarn-site.xml) on your Hadoop cluster.
2. Open the configuration file in a text editor.
3. Look for the property "yarn.resourcemanager.zk-address" in the file.
4. If the property is not present, add it to the file with the correct ZooKeeper address. For example, the property might look like this:
<property>
<name>yarn.resourcemanager.zk-address</name>
<value>zkserver1:2181,zkserver2:2181,zkserver3:2181</value>
</property>
5. If the property is already present but has a null value, update it with the correct ZooKeeper address.
6. Save the configuration file and restart the Hadoop services.
After completing these steps, the "yarn.resourcemanager.zk-address" property should be set correctly and the error message should be resolved.
阅读全文