gpt4 book ai didi

hadoop - ssh:连接到主机从端口 22:连接超时

转载 作者:可可西里 更新时间:2023-11-01 14:50:15 25 4
gpt4 key购买 nike

已编辑:-

我已经在两台不同的机器上完成了单节点集群,我已经将一个作为主机(192.168.1.1)并将其他 m/c 作为从机(192.168.1.2),我能够成功地在两台机器之间进行 ping,我已进行以下更改以进入 2 节点集群更新:-

两台机器上的/etc/hosts hosts.allow

All :  Ashish-PC 192.168.1.1 : allow
All : slave 192.168.1.2 : allow

主文件与

  Ashish-PC

奴隶文件与

  Ashish-PC 
slave

将本地主机公钥复制到远程主机(从属)时出现错误:端口 22

 ssh-copy-id -i ~/.ssh/id_rsa.pub hadoop@slave
/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed
/usr/bin/ssh-copy-id: ERROR: ssh: connect to host slave port 22: Connection timed out

以及当我在 master 服务中启动所有 dfs 时:-

 bin/start-dfs.sh
starting namenode, logging to /usr/local/hadoop/libexec/../logs/hadoop-Ashish-namenode- Ashish-PC.out
slave: ssh: connect to host slave port 22: Connection timed out
Ashish-PC: starting secondarynamenode, logging to /usr/local/hadoop/libexec/../logs/hadoop-Ashish-secondarynamenode-Ashish-PC.out
slave: ssh: connect to host slave port 22: Connection timed out

复制 key 时:-

ssh-copy-id -i ~/.ssh/id_rsa.pub hadoop@slave
/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed
/usr/bin/ssh-copy-id: ERROR: ssh: connect to host slave port 22: Connection timed out

我使用过 cygwin,ssh 在两台 PC 上都运行良好,我听取了一些更改端口号 22 的建议(因为 ISP 问题),但我不想那样做 because .提前感谢您的帮助和回复。

最佳答案

通过在家庭和公共(public)场所添加 sshd 允许主人通过 Windows 防火墙进行通信... enter image description here

确保您的 sshd 服务在每个节点上启动以进行通信。

关于hadoop - ssh:连接到主机从端口 22:连接超时,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18309614/

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