core-site.xml文件配置了9000
<property>
<name>fs.defaultFS</name>
<value>hdfs://master:9000</value>
</property>
防火墙关闭了
[root@master sbin]# systemctl status firewalld.service
firewalld.service - firewalld - dynamic firewall daemon
Loaded: loaded (/usr/lib/systemd/system/firewalld.service; disabled; vendor preset: enabled)
Active: inactive (dead)
Docs: man:firewalld(1)
hadoop命令无效
[root@master sbin]# hadoop fs -ls
ls: Call From master/192.168.179.101 to master:9000 failed on connection exception: java.net.ConnectException: 拒绝连接; For more details see: http://wiki.apache.org/ha
doop/ConnectionRefused
netstat -tlpn命令发现没有9000
修改为8020端口就可以了