我在 debian/stretch64 上有一个 vagrant box 我尝试使用文档 http://hadoop.apache.org/docs/current/hadoop-project-dist/hadoop-common/SingleCluster.htm安装 Hadoop3
当我运行 start-dfs.sh 我有这个消息
vagrant@stretch:/opt/hadoop$ sudo sbin/start-dfs.sh
Starting namenodes on [localhost]
pdsh@stretch: localhost: connect: Connection refused
Starting datanodes
pdsh@stretch: localhost: connect: Connection refused
Starting secondary namenodes [stretch]
pdsh@stretch: stretch: connect: Connection refused
vagrant@stretch:/opt/hadoop$
当然,我尝试使用以下命令更新我的 hadoop-env.sh:export HADOOP_SSH_OPTS="-p 22"
ssh localhost 工作(无密码)
我不知道我可以改变什么来解决这个问题