gpt4 book ai didi

linux - 通过 ssh 与集群的从属节点连接失败

转载 作者:太空宇宙 更新时间:2023-11-04 04:15:08 27 4
gpt4 key购买 nike

通过以下命令在集群下属节点上执行服务启动:

hadoop@one:/export/hadoop-1.0.1/bin$. ./start-all.sh

这不是我第一次收到结果

starting namenode, logging to /export/hadoop-1.0.1/libexec/../logs/hadoop--namenode-one.out
192.168.1.10: starting datanode, logging to /export/hadoop-1.0.1/libexec/../logs/hadoop-hadoop-datanode-myhost2.out
192.168.1.11: ssh: connect to host 192.168.1.11 port 22: Connection timed out
192.168.1.5: starting secondarynamenode, logging to /export/hadoop-1.0.1/libexec/../logs/hadoop-hadoop-secondarynamenode-one.out
starting jobtracker, logging to /export/hadoop-1.0.1/libexec/../logs/hadoop--jobtracker-one.out
192.168.1.10: starting tasktracker, logging to /export/hadoop-1.0.1/libexec/../logs/hadoop-hadoop-myhost2.out
192.168.1.11: ssh: connect to host 192.168.1.11 port 22: Connection timed out

如何修复以下错误:

ssh: connect to host port 22: Connection timed out

hadoop@one: /export/hadoop-1.0.1/bin$ ssh -vvv 192.168.1.10
Sun_SSH_1.5, SSH protocols 1.5/2.0, OpenSSL 0x1000004f
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Rhosts Authentication disabled, originating port will not be trusted.
debug1: ssh_connect: needpriv 0
debug1: Connecting to 192.168.1.10 [192.168.1.10] port 22
debug1: connect to address 192.168.1.10 port 22: Connection timed out
ssh: connect to host 192.168.1.10 port 22: Connection timed out

如何纠正错误?

最佳答案

您的计算机上是否运行 sshd 守护进程?您的操作系统可能附带 ssh,但为了启动 sshd 守护进程,您需要完全安装 ssh。我所说的完整是指:

ssh : The command we use to connect to remote machines - the client.

sshd : The daemon that runs on the server and allows clients to connect to this server.

此外,请确保端口 22 没有问题。如果您仍然遇到一些问题,请尝试使用 -v 开关进行 ssh 以获得完整的跟踪。

ssh -v myhost2

你可以去here ssh 的详细解释。

关于linux - 通过 ssh 与集群的从属节点连接失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16862991/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com