我试图在伪分布式环境中在ubuntu上安装hadoop。
start-dfs.sh (给我一个错误)
Starting namenodes on [10.1.37.12]
10.1.37.00: ssh: connect to host 10.1.37.12 port 22: Connection timed out
localhost: starting datanode, logging to /usr/local/hadoop/logs/hadoop-superuser-datanode-superuser-Satellite-E45W-C.out
Starting secondary namenodes [0.0.0.0]
0.0.0.0: starting secondarynamenode, logging to /usr/local/hadoop/logs/hadoop-superuser-secondarynamenode-superuser-Satellite-E45W-C.out我在防火墙上增加了端口22
jps产出:
2562 DataNode
3846 Jps
2743 SecondaryNameNode
有人能帮我理解一下,这里出了什么问题吗?
EXPORT HADOOP_SSH_OPTS="-p 22"' -- done
added port 22 to firewal("sudo ufw allow 22")
Tried stopping the firewall("sudo ufw disable")
run ssh -vvv 10.1.37.12 and share output
OpenSSH_7.9p1 Ubuntu-10, OpenSSL 1.1.1b 26 Feb 2019
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug2: resolve_canonicalize: hostname 10.1.37.12 is address
debug2: ssh_connect_direct
debug1: Connecting to 10.1.37.12 [10.1.37.12] port 22.
debug1: connect to address 10.1.37.12 port 22: Connection timed out
ssh: connect to host 10.1.37.12 port 22: Connection timed out发布于 2020-03-27 11:08:00
请检查您的/etc/hosts文件,您需要提到私有ip地址(在子网范围内)。在worker文件中也必须更新相同的内容。

https://stackoverflow.com/questions/56720317
复制相似问题