如何使Hadoop服务器在所有IP上进行侦听 [英] How to make Hadoop servers listening on all IPs

查看:435
本文介绍了如何使Hadoop服务器在所有IP上进行侦听的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在学习在两台机器(一台主机和一台从机)上部署Hadoop集群.但是,部署后,Web应用服务器(即主服务器上的端口8088)无法访问.我使用netstat -ant来检查它是否如下所示:

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
...

我自己建立的其他服务器,例如在端口56666上侦听的服务器,都是可以访问的.我认为这可能是Hadoop Web应用程序服务器仅在localhost而不是任何IP地址上侦听的问题.

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?

推荐答案

在yarn-site.xml中将参数yarn.resourcemanager.bind-host设置为0.0.0.0.

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

这篇关于如何使Hadoop服务器在所有IP上进行侦听的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆