hadoop端口9000的外部ip端口未打开

rslzwgfq  于 2021-05-29  发布在  Hadoop
关注(0)|答案(1)|浏览(390)

注意下面的端口9000。它对本地主机开放,但对外部ip不开放。有人能提供帮助吗?我已经禁用了防火墙

Starting Nmap 6.40 ( http://nmap.org ) at 2018-08-29 05:53 PDT
Nmap scan report for localhost (127.0.0.1)
Host is up (0.0000020s latency).
Other addresses for localhost (not scanned): 127.0.0.1
Not shown: 991 closed ports
PORT     STATE SERVICE
22/tcp   open  ssh
23/tcp   open  telnet
25/tcp   open  smtp
139/tcp  open  netbios-ssn
445/tcp  open  microsoft-ds
8031/tcp open  unknown
8042/tcp open  fs-agent
8088/tcp open  radan-http
9000/tcp open  cslistener

Nmap done: 1 IP address (1 host up) scanned in 2.51 seconds
[root@localhost ~]# nmap 192.168.146.128

Starting Nmap 6.40 ( http://nmap.org ) at 2018-08-29 05:54 PDT
Nmap scan report for 192.168.146.128
Host is up (0.000037s latency).
Not shown: 993 closed ports
PORT     STATE SERVICE
22/tcp   open  ssh
23/tcp   open  telnet
139/tcp  open  netbios-ssn
445/tcp  open  microsoft-ds
8031/tcp open  unknown
8042/tcp open  fs-agent
8088/tcp open  radan-http

[root@localhost ~]# firewall-cmd --zone=public --permanent --add-port=9000/tcp

防火墙未运行

b91juud3

b91juud31#

修改core-site.xml。对于入口 fs.default.name ,将值更改为 hdfs://0.0.0.0:9000 然后重新启动服务。
如果您将该项设置为localhost,那么tcp将侦听127.0.0.1,它仅在计算机内部可用。使用0.0.0.0意味着监听所有允许外部访问的网络接口。

相关问题