问题描述
我已经在12个节点(以群集独立模式)上安装了spark2.0.0,当我启动它时,我得到了:
./ sbin / start-all.sh
我已经设置了主端口Port = 8081,其IP = 192.17.0.17表示HOSTNAME = ibnb25,我从该主机启动了集群。
从我的本地计算机上,我使用此命令访问群集
ssh mName@xx.xx.xx.xx
以及当我想访问网络时通过本地计算机的UI,我使用了主服务器的IP地址(HOST ibnb25)
192.17.0.17:8081
但无法显示,因此我尝试使用用于访问群集的地址
xx.xx.xx.xx:8081
,但是浏览器上什么也没有显示.....怎么了? pleaseeee帮我
您的/ etc / hosts文件似乎设置不正确。
您应该使用以下命令获取主机名和IP:
hostname
hostname -i
请确保主机名和IP之间有空格。
示例/ etc / hosts文件如下:
192.17.0.17< hostname>
192.17.0.17本地主机
<其他IP1> <其他主机名1>
。
。
。
<其他IP-n> <其他主机名-n>
确保/ etc / hosts文件中每个节点上的群集中都有所有IP主机条目。 / p>
对于FQDN,请阅读。
i have installed spark2.0.0 on 12 nodes (in cluster standalone mode), when i launch it i get this :
./sbin/start-all.sh
i have already set the port o master Port=8081 and its IP=192.17.0.17 means the HOSTNAME=ibnb25, i launched the cluster from this host.
from my local machine i use this command to access to the cluster
ssh mName@xx.xx.xx.xx
and when i wanted to access to the web UI from my local machine, i used the IPaddress of the master (HOST ibnb25)
192.17.0.17:8081
but it couldn't be displayed, so i tried with the address that i use to access to the cluster
xx.xx.xx.xx:8081
but nothing is displaying on my browser..... what is wrong?? pleaseeee help me
Your /etc/hosts file seems to be incorrectly set up.
You should get hostname and IP with following commands:
hostname
hostname -i
Make sure there is space between hostname and IP.
Sample /etc/hosts file looks like :
192.17.0.17 <hostname>
192.17.0.17 localhost
<Other IP1> <other hostname1>
.
.
.
<Other IP-n> <other hostname-n>
Make sure to have all IP host entries in cluster on each node in /etc/hosts file.
For FQDN read this.
这篇关于无法访问Spark Web UI的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!