环境:Ubuntu12.04+hadoop2.4.0,
部署模式,分布式部署,2个node,1个master,一个slave。
问题1、web查看节点总提示只有1个node,查询hdfs报错,
manager-banana-ThinkPad-R60.out
hadoop@apple-ThinkPad-R60:/usr/local/hadoop/sbin$ hdfs dfsadmin -report
14/08/14 17:07:51 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
14/08/14 17:07:52 WARN ipc.Client: Address change detected. Old: apple-ThinkPad-R60/192.168.0.55:9000 New: apple-ThinkPad-R60/127.0.1.1:9000
report: Call From apple-ThinkPad-R60/127.0.1.1 to apple-ThinkPad-R60:9000 failed on connection exception: java.net.ConnectException: Connection refused; For more details see:
按照以上wiki提示,修改hosts文件如下,重启hadoop后正常了。
hadoop@apple-ThinkPad-R60:/usr/local/hadoop/sbin$ sudo vi /etc/hosts
127.0.0.1 localhost
#127.0.1.1 apple-ThinkPad-R60
192.168.0.55 apple-ThinkPad-R60 apple
192.168.0.56 banana-ThinkPad-R60 banana
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
阅读(3045) | 评论(2) | 转发(0) |