Resource Manager Web UI无法正常工作,附yarn-site.xml配置信息
Hey there, let's work through why your YARN Resource Manager Web UI isn't loading properly. First, let's note the partial yarn-site.xml config you shared (it looks truncated, which might be part of the issue):
<configuration> <!-- Site specific YARN configuration properties --> <property> <name>yarn.nodemanager.aux-services</name> <value>mapreduce_shuffle</value> </property> <property> <name>yarn.nodemanager.aux-services.mapreduce.shuffle.class</name> <value>org.apache.hadoop.mapred.ShuffleHandler</value> </property> <property> <name>yarn.resourcemanager.resour...
Let's break down the key checks to fix this:
Verify complete Resource Manager web UI configuration
The truncated line in your config suggests you might be missing critical entries that define how the web UI runs. Make sure these properties are properly set inyarn-site.xml:<property> <name>yarn.resourcemanager.address</name> <value>your-rm-hostname:8032</value> </property> <property> <name>yarn.resourcemanager.webapp.address</name> <value>your-rm-hostname:8088</value> <!-- Default web UI port --> </property> <property> <name>yarn.resourcemanager.webapp.https.address</name> <value>your-rm-hostname:8090</value> </property>Replace
your-rm-hostnamewith the actual hostname or IP of your Resource Manager node.Check if the Resource Manager process is running
Use these commands to confirm the service is up:- Run
jpsand look for aResourceManagerentry in the output. - Or use the YARN CLI:
yarn resourcemanager status
If it's not running, start it with:
start-yarn.sh # Starts all YARN services # Or start just the Resource Manager: yarn-daemon.sh start resourcemanager- Run
Validate port accessibility and conflicts
The default web UI runs on port 8088. Check if this port is accessible and free:- Test connectivity from your machine to the RM host:
telnet your-rm-hostname 8088ornc -zv your-rm-hostname 8088 - Check if the port is occupied by another process:
netstat -tulpn | grep 8088(Linux) orss -tulpn | grep 8088
If the port is in use, update theyarn.resourcemanager.webapp.addressproperty to use a different port (e.g., 8089).
- Test connectivity from your machine to the RM host:
Inspect Resource Manager logs for errors
Head to your Hadoop logs directory (usually$HADOOP_HOME/logs) and look for files namedyarn-*-resourcemanager-*.log. Search for keywords likeERROR,webapp, orbind—these will often tell you if there's a startup failure, configuration parsing error, or port binding issue.Ensure your XML config is syntactically correct
A missing closing</property>or</configuration>tag can break the entire config. Double-check that all your property blocks are properly closed, and that there are no typos in property names.Rule out browser-side issues
Sometimes cached data or proxy settings can block access. Try loading the UI in an incognito/private window, clear your browser cache, or access the RM's IP address directly instead of using a hostname.
内容的提问来源于stack exchange,提问作者Jon Andrews

