How to make Hadoop servers listening on all IPs

↘锁芯ラ 提交于 2019-12-12 03:36:17

问题


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

  1. Turn off iptables (Firewall)
  2. Disable SELINUX

Then try



来源:https://stackoverflow.com/questions/36171725/how-to-make-hadoop-servers-listening-on-all-ips

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!