hadoop启动遇到ssh不能解析问题。

root@master:~# stop-all.sh 
This script is Deprecated. Instead use stop-dfs.sh and stop-yarn.sh
Stopping namenodes on [2018-10-12 17:57:20,461 WARN  [main] util.NativeCodeLoader (NativeCodeLoader.java:<clinit>(62)) - Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
master slave1]
platform...: ssh: Could not resolve hostname platform...: Name or service not known
-: ssh: Could not resolve hostname -: Name or service not known
to: ssh: Could not resolve hostname to: No address associated with hostname
for: ssh: Could not resolve hostname for: Name or service not known
slave1: no namenode to stop
master: no namenode to stop
util.NativeCodeLoader: ssh: Could not resolve hostname util.nativecodeloader: Name or service not known
[main]: ssh: Could not resolve hostname [main]: Name or service not known
WARN: ssh: Could not resolve hostname warn: Name or service not known
(NativeCodeLoader.java:<clinit>(62)): ssh: Could not resolve hostname (nativecodeloader.java:<clinit>(62)): Name or service not known
Unable: ssh: Could not resolve hostname unable: Name or service not known
load: ssh: Could not resolve hostname load: Name or service not known
your: ssh: Could not resolve hostname your: Name or service not known
17:57:20,461: ssh: Could not resolve hostname 17:57:20,461: Name or service not known
native-hadoop: ssh: Could not resolve hostname native-hadoop: Name or service not known
library: ssh: Could not resolve hostname library: Name or service not known
2018-10-12: ssh: Could not resolve hostname 2018-10-12: Name or service not known
using: ssh: Could not resolve hostname using: Name or service not known
builtin-java: ssh: Could not resolve hostname builtin-java: Name or service not known
where: ssh: Could not resolve hostname where: Name or service not known
classes: ssh: Could not resolve hostname classes: Name or service not known
applicable: ssh: Could not resolve hostname applicable: Name or service not known
slave3: no datanode to stop
slave2: no datanode to stop
slave1: no datanode to stop
Stopping secondary namenodes [2018-10-12 17:57:30,422 WARN  [main] util.NativeCodeLoader (NativeCodeLoader.java:<clinit>(62)) - Unable to load native-hadoop library for your platform... using builtin-java classes where applicable]
platform...: ssh: Could not resolve hostname platform...: Name or service not known
(NativeCodeLoader.java:<clinit>(62)): ssh: Could not resolve hostname (nativecodeloader.java:<clinit>(62)): Name or service not known
-: ssh: Could not resolve hostname -: Name or service not known
WARN: ssh: Could not resolve hostname warn: Name or service not known
[main]: ssh: Could not resolve hostname [main]: Name or service not known
util.NativeCodeLoader: ssh: Could not resolve hostname util.nativecodeloader: Name or service not known
to: ssh: Could not resolve hostname to: No address associated with hostname
17:57:30,422: ssh: Could not resolve hostname 17:57:30,422: Name or service not known
Unable: ssh: Could not resolve hostname unable: Name or service not known
load: ssh: Could not resolve hostname load: Name or service not known
library: ssh: Could not resolve hostname library: Name or service not known
2018-10-12: ssh: Could not resolve hostname 2018-10-12: Name or service not known
for: ssh: Could not resolve hostname for: Name or service not known
native-hadoop: ssh: Could not resolve hostname native-hadoop: Name or service not known
your: ssh: Could not resolve hostname your: Name or service not known
using: ssh: Could not resolve hostname using: Name or service not known
classes: ssh: Could not resolve hostname classes: Name or service not known
builtin-java: ssh: Could not resolve hostname builtin-java: Name or service not known
where: ssh: Could not resolve hostname where: Name or service not known
applicable: ssh: Could not resolve hostname applicable: Name or service not known
stopping yarn daemons
no resourcemanager to stop
slave3: no nodemanager to stop
slave2: no nodemanager to stop
slave1: no nodemanager to stop
no proxyserver to stop

fish - Hadooper

赞同来自:

如果没有内部的DNS解决将机器名和IP直接进行互相翻译问题的话,需要在/etc/hosts中配置机器名到ip之间的映射关系。

要回复问题请先登录注册