2 fascinatinggirl fascinatingGirl 于 2016.03.28 20:30 提问

在Linux部署hadoop,启动出错

启动时整个输出很多信息,正常情况下,应该只有几行,启动了namenode、datanode等,
但是我在启动的时候却一直报‘ssh: Could not resolve hostname ’
具体信息如下:

[root@hbase ~]# start-dfs.sh

 with: ssh: Could not resolve hostname with: Temporary failure in name resolution
it: ssh: Could not resolve hostname it: Temporary failure in name resolution
<libfile>',: ssh: Could not resolve hostname <libfile>',: Temporary failure in name resolution
'-z: ssh: Could not resolve hostname '-z: Temporary failure in name resolution
hbase: starting namenode, logging to /usr/local/hadoop-2.6.0/logs/hadoop-root-namenode-hbase.out
hbase: starting datanode, logging to /usr/local/hadoop-2.6.0/logs/hadoop-root-datanode-hbase.out
Starting secondary namenodes [Java HotSpot(TM) Client VM warning: You have loaded library /usr/local/hadoop-2.6.0/lib/native/libhadoop.so.1.0.0 which might have disabled stack guard. The VM will try to fix the stack guard now.
It's highly recommended that you fix the library with 'execstack -c <libfile>', or link it with '-z noexecstack'.
0.0.0.0]
sed: -e expression #1, char 6: unknown option to `s'
You: ssh: Could not resolve hostname You: Temporary failure in name resolution
warning:: ssh: Could not resolve hostname warning:: Temporary failure in name resolution
loaded: ssh: Could not resolve hostname loaded: Temporary failure in name resolution
which: ssh: Could not resolve hostname which: Temporary failure in name resolution
library: ssh: Could not resolve hostname library: Temporary failure in name resolution
HotSpot(TM): ssh: Could not resolve hostname HotSpot(TM): Temporary failure in name resolution
VM: ssh: Could not resolve hostname VM: Temporary failure in name resolution
Java: ssh: Could not resolve hostname Java: Temporary failure in name resolution
stack: ssh: Could not resolve hostname stack: Temporary failure in name resolution
have: ssh: Could not resolve hostname have: Temporary failure in name resolution
have: ssh: Could not resolve hostname have: Temporary failure in name resolution
The: ssh: Could not resolve hostname The: Temporary failure in name resolution
Client: ssh: Could not resolve hostname Client: Temporary failure in name resolution
might: ssh: Could not resolve hostname might: Temporary failure in name resolution
fix: ssh: Could not resolve hostname fix: Temporary failure in name resolution
will: ssh: Could not resolve hostname will: Temporary failure in name resolution
disabled: ssh: Could not resolve hostname disabled: Temporary failure in name resolution
the: ssh: Could not resolve hostname the: Temporary failure in name resolution
try: ssh: Could not resolve hostname try: Temporary failure in name resolution
VM: ssh: Could not resolve hostname VM: Temporary failure in name resolution.........

4个回答

oyljerry
oyljerry   Ds   Rxr 2016.03.28 20:59

你的系统hostname配置有没有正确。

CSDNXIAOD
CSDNXIAOD   2016.03.30 11:29

Linux的hadoop部署
在Linux系统上部署Hadoop运行环境
Linux下部署Hadoop伪分布模式
----------------------biu~biu~biu~~~在下问答机器人小D,这是我依靠自己的聪明才智给出的答案,如果不正确,你来咬我啊!

hxiaowang
hxiaowang   2016.04.05 19:50

你的hostname 和你Hadoop配置文件的不一致

fascinatingGirl
fascinatingGirl 您好,我在虚拟机这样操作:cat /etc/hosts,结果是:127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 192.168.1.222 love 192.168.1.222 localhost,然后 cat /etc/sysconfig/network,结果是NETWORKING=yes HOSTNAME=love,请问是这个有问题吗
一年多之前 回复
fascinatingGirl
fascinatingGirl 您好,我在虚拟机这样操作:cat /etc/hosts
一年多之前 回复
hijack00
hijack00   Rxr 2016.08.22 19:36

hadoop里面slaves文件配置不正确或者是hosts文件没有配置好。
检查利用ssh命令能够正常连接到slaves文件中列出的主机。例如,有一台主机叫做slave1,输入ssh slave1看看能够实现无密码登录那台主机。如果不能,就将slave1的IP地址写入/etc/hosts文件。配置无密码登录参考网上教程

Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!