Hadoop external browser access 50070 is normal, 8088 can not be accessed! But you can use the vm browser

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.
Insert picture description here

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.
Insert picture description here

Guess you like

Origin blog.csdn.net/qq_41948178/article/details/108627640