可能原因:localhost地址的IP映射没有配置。 方法:编辑namenode节点及各个datanode节点的hosts文件: 命令:vi /etc/hosts 在第一行添加:127.0.0.1 localhost 即可。