编辑:-
我已经在两台不同的机器上完成了单节点集群,我已经将一个作为主机(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
以及当我在主服务上启动所有 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
复制密钥时:-
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 问题),但我不想这样做只是因为. 提前感谢您的帮助和回复。