0

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

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

如何纠正错误?

4

1 回答 1

0

你的机器上运行 sshd 守护进程吗?您的操作系统可能带有 ssh,但要启动 sshd 守护进程,您需要完全安装 ssh。完整的意思是:

ssh :我们用来连接远程机器的命令——客户端。

sshd :在服务器上运行并允许客户端连接到该服务器的守护进程。

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

ssh -v myhost2

你可以到这里查看 ssh 的详细解释。

于 2013-05-31T19:29:29.477 回答