ssh: connect to host master port 22: Connection refused
hadoop集群启动的时候namenode显示Connection refused
到windows下ping master 显示传输中过期
ip是静态的
ssh master 也是连接拒绝
重启ssh服务
发现这个问题。。。
Sep 27 16:13:15 master sshd[1708]: Server listening on :: port 22. Sep 27 16:13:15 master systemd[1]: Started OpenSSH server daemon. Sep 27 16:16:16 master sshd[3697]: Accepted publickey for hadoop from ::1 p...01 Sep 27 16:16:23 master sshd[3903]: Accepted publickey for hadoop from 127.0...01 Sep 27 16:16:31 master sshd[4216]: Accepted publickey for hadoop from ::1 p...01 Sep 27 16:16:55 master sshd[4752]: Accepted publickey for hadoop from ::1 p...01 Sep 27 16:16:56 master sshd[4879]: Accepted publickey for hadoop from 127.0...01 Sep 27 16:17:10 master sshd[5153]: Accepted publickey for hadoop from ::1 p...01 Sep 27 16:17:16 master sshd[5317]: Accepted publickey for hadoop from 127.0...01 Sep 27 16:17:27 master sshd[5551]: Accepted publickey for hadoop from ::1 p...01 Hint: Some lines were ellipsized, use -l to show in full.重启集群还是这个问题
重装ssh!!
卸载过程:
1.rpm -qa | grep ssh
ksshaskpass-0.5.3-7.el7.x86_64 openssh-clients-6.6.1p1-31.el7.x86_64 libssh2-1.4.3-10.el7_2.1.x86_64 openssh-6.6.1p1-31.el7.x86_64 openssh-server-6.6.1p1-31.el7.x86_64
2.yum -y remove +包名
安装过程:
1.yum install -y openssh-server
由于卸载过猛,缺少安装包,百度了好久,终于查到了
2.执行 yum install -y openssh*
3.如下图
启动成功后ssh master 还是没有用,纳闷。。。
测试ssh + ip 有用
问题还是出现在ip上!
我有两个静态ip,在 C:\Windows\System32\drivers\etc\hosts 中写的是其中的一个,启动时自动连接另外一个。同样,在 /etc/hosts/ 中的ip地址也没有改。。