操作场景
-
扩容主机失败,有如下提示信息:
#发现节点未完成# Could not verify `ecdsa-sha2-nistp256` host key with fingerprint `31:90:be:5c:92:a4:62:90:7d:9a:d2:c2:4e:4f:d6:2a` for `xxx.xxx.xxx.xxx` on port 22 while Connecting via SSH to xxx.xxx.xxx.xxx using username root.
-
重装主机失败,提示:
重装主机失败,详细错误信息: Failed to verify nodes connection. Maybe the password is incorrect or the network is abnormal.
可能原因
待扩容或重装节点的HOSTKEY变更(重装OS或者重新生成HOSTKEY可能会导致HOSTKEY变更)。
处理步骤
-
使用PuTTY工具,以omm用户登录主管理节点。
-
执行vi /var/log/Bigdata/controller/controller_nodesetup.log命令,搜索“HOST_KEY_NOT_VERIFIABLE”关键字,有如下报错信息:
2019-10-14 23:01:47,867 ERROR [pool-101-thread-1] SSH Command Exectuion failed, Error details: com.huawei.bigdata.om.controller.agent.nodesetup.SshActionChannelHandler.recordException(SshActionChannelHandler.java:465) net.schmizz.sshj.transport.TransportException: [HOST_KEY_NOT_VERIFIABLE] Could not verify `ecdsa-sha2-nistp256` host key with fingerprint `31:90:be:5c:92:a4:62:90:7d:9a:d2:c2:4e:4f:d6:2a` for `xxx.xxx.xxx.xxx` on port 22 at net.schmizz.sshj.transport.KeyExchanger.verifyHost(KeyExchanger.java:211) at net.schmizz.sshj.transport.KeyExchanger.handle(KeyExchanger.java:365) at net.schmizz.sshj.transport.TransportImpl.handle(TransportImpl.java:503) at net.schmizz.sshj.transport.Decoder.decode(Decoder.java:102) at net.schmizz.sshj.transport.Decoder.received(Decoder.java:170) at net.schmizz.sshj.transport.Reader.run(Reader.java:59) 2019-10-14 23:01:47,868 INFO [pool-101-thread-1] SSH Connection to xxx.xxx.xxx.xxx Not initialized due to error so no need to disconnect. com.huawei.bigdata.om.controller.agent.nodesetup.SshActionChannelHandler.disconnectSSH(SshActionChannelHandler.java:418)
-
执行vi ${BIGDATA_HOME}/om-server/om/etc/om/known_hosts命令,删除文件中包含待扩容或者重装节点主机名或者ip地址的行。
-
执行sh ${CONTROLLER_HOME}/sbin/restart-controller.sh命令重启controller,然后重新进行扩容或者重装主机。
原创文章,作者:奋斗,如若转载,请注明出处:https://blog.ytso.com/tech/bigdata/316657.html