运行Hadoop / bin / start-all.sh时名称解析暂时失败

时间:2011-07-13 05:03:11

标签: hadoop

我在SUSE Linux上运行Hadoop / bin / start-all.sh时遇到了“名称解析暂时失败”。我搜索了很多网站来查找问题,但找不到有效的答案。我期待你的帮助,谢谢!!

它部署在同一个机器上,因此在两个主/从文件中只有一行:localhost

solom@linux87:~/hadoop> bin/hadoop namenode -format
11/07/12 17:43:10 INFO namenode.NameNode: STARTUP_MSG: 
/************************************************************
STARTUP_MSG: Starting NameNode
STARTUP_MSG:   host = linux87/10.18.6.87
STARTUP_MSG:   args = [-format]
STARTUP_MSG:   version = 0.20.2
STARTUP_MSG:   build =        
https://svn.apache.org/repos/asf/hadoop/common/branches/branch-0.20 -r 911707;
compiled by 'chrisdo' on Fri Feb 19 08:07:34 UTC 2010
************************************************************/
Re-format filesystem in /home/solom/tmp/hadoop/dfs/name ? (Y or N) 
Y
11/07/12 17:43:13 INFO namenode.FSNamesystem: fsOwner=solom,solom,dialout,video
11/07/12 17:43:13 INFO namenode.FSNamesystem: supergroup=supergroup
11/07/12 17:43:13 INFO namenode.FSNamesystem: isPermissionEnabled=true
11/07/12 17:43:13 INFO common.Storage: Image file of size 95 saved in 0 seconds.
11/07/12 17:43:14 INFO common.Storage: Storage directory 
/home/solom/tmp/hadoop/dfs/name  has been successfully formatted.
11/07/12 17:43:14 INFO namenode.NameNode: SHUTDOWN_MSG: 
/************************************************************
SHUTDOWN_MSG: Shutting down NameNode at linux87/10.18.6.87
************************************************************/
solom@linux87:~/hadoop> bin/start-all.sh
starting namenode, logging to /home/solom/hadoop/bin/../logs/hadoop-solom-namenode-
linux87.out

: Temporary failure in name resolution
: Temporary failure in name resolution
starting jobtracker, logging to
 /home/solom/hadoop/bin/../logs/hadoop-solom-jobtracker-linux87.out
: Temporary failure in name resolution
additional:
solom@linux87:~> cat /etc/hosts
#
# hosts         This file describes a number of hostname-to-address
#               mappings for the TCP/IP subsystem.  It is mostly
#               used at boot time, when no name servers are running.
#               On small systems, this file can be used instead of a
#               "named" name server.
# Syntax:
#    
# IP-Address  Full-Qualified-Hostname  Short-Hostname
#

127.0.0.1       localhost

# special IPv6 addresses
::1             localhost ipv6-localhost ipv6-loopback

fe00::0         ipv6-localnet

ff00::0         ipv6-mcastprefix
ff02::1         ipv6-allnodes
ff02::2         ipv6-allrouters
ff02::3         ipv6-allhosts
10.18.6.87      linux87.site linux87
solom@linux87:~> 

2 个答案:

答案 0 :(得分:1)

$ vi -b conf/slaves

也许你可以知道发生了什么!

答案 1 :(得分:0)

我遇到了同样的问题,我已经解决了将/etc/hosts文件添加到下一行的问题: 192.168.56.101 localhost hadoop 你必须在哪里更改ip并更改hadoop并输入你自己的主机名。