Problem Description
The virtual machine can access port 50070 and port 8088 through the host name, but the host machine can only access port 50070 and port 8088 through the host name.
problem causes
Host configuration problem or port binding host error. (Troubleshooting issues such as hadoop's yarn-site.xml configuration and firewall)
solution
/etc/hosts configuration file. Cancel the configuration of 127.0.1.1 here, otherwise the service of port 8088 will be bound to this ip; the ip corresponding to the host name is bound to the physical ip, and localhost is not modified.
Use the netstat -tpnl | grep java command to check the ip address bound to 8088. If the result is the following, you can access it normally.