问题
I'm learning to deploy Hadoop Cluster on 2 machines, one master and one slave. However, after deployment the web app server(i.e. port 8088
on master) is not reachable. I use netstat -ant
to check it says like below:
proto Recv-Q Send-Q LocalAddress ForeignAddress State
...
tcp 0 0 127.0.0.1:8088 *:* LISTEN
tcp 0 0 0.0.0.0:56666 *:* LISTEN
...
Other servers established by myself, like the one listening on port 56666
, are reachable. I think it maybe the problem that Hadoop web app server is only listening on localhost
instead of any IP addresses.
Is it the true reason? Can I fix it?
回答1:
Set the parameter yarn.resourcemanager.bind-host
to 0.0.0.0
in yarn-site.xml.
https://hadoop.apache.org/docs/r2.7.2/hadoop-yarn/hadoop-yarn-common/yarn-default.xml
回答2:
Follow below steps
- Turn off iptables (Firewall)
- Disable SELINUX
Then try
来源:https://stackoverflow.com/questions/36171725/how-to-make-hadoop-servers-listening-on-all-ips