1. Start Hadoop. Then Netstat-nltp|grep 50070, if the process is not found, the port modification without configuring the Web interface is hdfs-site,xml with the following configuration
If you use the hostname: port number, go first to check the hostname under/etc/hosts IP, whether configured and your current IP is the same, and then restart Hadoop
2. Now in the virtual machine to try to access hadoop002:50070, if not access, it is estimated that the sellinux problem is to execute the following command Setenforce 0 (set to permissive mode) and then re-access within the virtual machine, this should be able to access the normal
3. However, the external host is inaccessible at this time, indicating that the Linux firewall does not open 50070 ports, the simple and brutal way is to turn off the firewall sudo service iptables Stop also one way is to modify the firewall configuration file open 50070 port execute the following command
sudo vi/etc/sysconfig/iptables, plus this line-I input-m State--state new-m tcp-p TCP--dport 50070-j ACCEPT
sudo service iptables Restart Restart Firewall services after modification is complete
4. Enter the host name in the host browser at this time: Port can be accessed, if not, to modify the hosts in the host file C:\Windows\System32\drivers\etc\hosts IP, Remain consistent with the host IP in the virtual machine and then re-access it
Hadoop 3.1.1 Cannot access the Web interface of HDFs (50070)