Starting namenodes on [localhost]
localhost: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
localhost: @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
localhost: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
localhost: IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
localhost: Someone could be eavesdropping on you right now (man-in-the-middle attack)!
localhost: It is also possible that a host key has just been changed.
localhost: The fingerprint for the ECDSA key sent by the remote host is
localhost: SHA256:3ByD9vpXcWGn0EX47vHEtxDOtM639PTXoN/1GwUU5bo.
localhost: Please contact your system administrator.
localhost: Add correct host key in /home/hadoop/.ssh/known_hosts to get rid of this message.
localhost: Offending ECDSA key in /home/hadoop/.ssh/known_hosts:1
localhost: remove with:
localhost: ssh-keygen -f "/home/hadoop/.ssh/known_hosts" -R localhost
localhost: ECDSA host key for localhost has changed and you have requested strict checking.
localhost: Host key verification failed.
localhost: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
localhost: @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
localhost: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
localhost: IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
localhost: Someone could be eavesdropping on you right now (man-in-the-middle attack)!
localhost: It is also possible that a host key has just been changed.
localhost: The fingerprint for the ECDSA key sent by the remote host is
localhost: SHA256:3ByD9vpXcWGn0EX47vHEtxDOtM639PTXoN/1GwUU5bo.
localhost: Please contact your system administrator.
localhost: Add correct host key in /home/hadoop/.ssh/known_hosts to get rid of this message.
localhost: Offending ECDSA key in /home/hadoop/.ssh/known_hosts:1
localhost: remove with:
localhost: ssh-keygen -f "/home/hadoop/.ssh/known_hosts" -R localhost
localhost: ECDSA host key for localhost has changed and you have requested strict checking.
localhost: Host key verification failed.
Starting secondary namenodes [0.0.0.0]
0.0.0.0: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
0.0.0.0: @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
0.0.0.0: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
0.0.0.0: IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
0.0.0.0: Someone could be eavesdropping on you right now (man-in-the-middle attack)!
0.0.0.0: It is also possible that a host key has just been changed.
0.0.0.0: The fingerprint for the ECDSA key sent by the remote host is
0.0.0.0: SHA256:3ByD9vpXcWGn0EX47vHEtxDOtM639PTXoN/1GwUU5bo.
0.0.0.0: Please contact your system administrator.
0.0.0.0: Add correct host key in /home/hadoop/.ssh/known_hosts to get rid of this message.
0.0.0.0: Offending ECDSA key in /home/hadoop/.ssh/known_hosts:2
0.0.0.0: remove with:
0.0.0.0: ssh-keygen -f "/home/hadoop/.ssh/known_hosts" -R 0.0.0.0
0.0.0.0: ECDSA host key for 0.0.0.0 has changed and you have requested strict checking.
0.0.0.0: Host key verification failed.
hadoop@b9b8f8b01540:~$ rm -f /home/hadoop/.ssh/known_hosts
hadoop@b9b8f8b01540:~$ sudo rm -f /home/hadoop/.ssh/known_hosts
解决:删除/home/hadoop/.ssh/known_hosts
再次启动: start-dfs.sh #
Starting namenodes on [localhost]
The authenticity of host 'localhost (127.0.0.1)' can't be established.
ECDSA key fingerprint is SHA256:3ByD9vpXcWGn0EX47vHEtxDOtM639PTXoN/1GwUU5bo.
Are you sure you want to continue connecting (yes/no)? yes
localhost: Warning: Permanently added 'localhost' (ECDSA) to the list of known hosts.
localhost: starting namenode, logging to /usr/local/hadoop/logs/hadoop-hadoop-namenode-b9b8f8b01540.out
localhost: starting datanode, logging to /usr/local/hadoop/logs/hadoop-hadoop-datanode-b9b8f8b01540.out
Starting secondary namenodes [0.0.0.0]
The authenticity of host '0.0.0.0 (0.0.0.0)' can't be established.
ECDSA key fingerprint is SHA256:3ByD9vpXcWGn0EX47vHEtxDOtM639PTXoN/1GwUU5bo.
Are you sure you want to continue connecting (yes/no)? ye
Please type 'yes' or 'no': yes
0.0.0.0: Warning: Permanently added '0.0.0.0' (ECDSA) to the list of known hosts.
0.0.0.0: starting secondarynamenode, logging to /usr/local/hadoop/logs/hadoop-hadoop-secondarynamenode-b9b8f8b01540.out
下一次就不用了: stop-dfs.sh
Stopping namenodes on [localhost]
localhost: stopping namenode
localhost: stopping datanode
Stopping secondary namenodes [0.0.0.0]
0.0.0.0: stopping secondarynamenode
hadoop@b9b8f8b01540:~$ start-dfs.sh
Starting namenodes on [localhost]
localhost: starting namenode, logging to /usr/local/hadoop/logs/hadoop-hadoop-namenode-b9b8f8b01540.out
localhost: starting datanode, logging to /usr/local/hadoop/logs/hadoop-hadoop-datanode-b9b8f8b01540.out
Starting secondary namenodes [0.0.0.0]
0.0.0.0: starting secondarynamenode, logging to /usr/local/hadoop/logs/hadoop-hadoop-secondarynamenode-b9b8f8b01540.out