首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >22抛出端口22:连接超时错误

22抛出端口22:连接超时错误
EN

Stack Overflow用户
提问于 2019-06-23 01:13:32
回答 1查看 7K关注 0票数 0

我试图在伪分布式环境中在ubuntu上安装hadoop。

start-dfs.sh (给我一个错误)

代码语言:javascript
复制
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

有人能帮我理解一下,这里出了什么问题吗?

代码语言:javascript
复制
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
EN

回答 1

Stack Overflow用户

发布于 2020-03-27 11:08:00

请检查您的/etc/hosts文件,您需要提到私有ip地址(在子网范围内)。在worker文件中也必须更新相同的内容。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/56720317

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档