hadoop2.x集群部署一种一个datanode无法启动

Exception in secureMain
java.net.UnknownHostException: node1: node1
at java.net.InetAddress.getLocalHost(InetAddress.java:1473)
at org.apache.hadoop.security.SecurityUtil.getLocalHostName(SecurityUtil.java:187)
at org.apache.hadoop.security.SecurityUtil.login(SecurityUtil.java:207)
at org.apache.hadoop.hdfs.server.datanode.DataNode.instantiateDataNode(DataNode.java:2153)
at org.apache.hadoop.hdfs.server.datanode.DataNode.createDataNode(DataNode.java:2202)
at org.apache.hadoop.hdfs.server.datanode.DataNode.secureMain(DataNode.java:2378)
at org.apache.hadoop.hdfs.server.datanode.DataNode.main(DataNode.java:2402)
Caused by: java.net.UnknownHostException: node1
at java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method)
at java.net.InetAddress$1.lookupAllHostAddr(InetAddress.java:901)
at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1293)
at java.net.InetAddress.getLocalHost(InetAddress.java:1469)
... 6 more
2015-01-16 09:08:54,152 INFO org.apache.hadoop.util.ExitUtil: Exiting with status 1
2015-01-16 09:08:54,164 INFO org.apache.hadoop.hdfs.server.datanode.DataNode: SHUTDOWN_MSG:
/************************************************************
SHUTDOWN_MSG: Shutting down DataNode at java.net.UnknownHostException: node1: node1
************************************************************/
环境ubuntu,hadoop2.6,jdk7
排比句部署三台虚拟机一台namenode,两台datanode;/etc/hostname 都已经配置分布为master,node1,node2
/etc/hosts配置为:
27.0.0.1 localhost
127.0.1.1 ubuntu.localdomain ubuntu

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
192.168.184.129 master
192.168.184.130 node1
192.168.184.131 node2

hadoop/etc/hadoo/slaves配置为造句
node1
node2
core-site.xml配置为:

fs.defaultFS
hdfs://master:9000/


hadoop.tmp.dir
/home/yangwq/hadoop-2.6.0/temp
A base for other temporary directories.


hdfs-site.xml配置为:


dfs.replication
2


dfs.namenode.name.dir
file:/home/yangwq/hadoop-2.6.0/dfs/name
true


dfs.datanode.data.dir
file:/home/yangwq/hadoop-2.6.0/dfs/data


mapred-site.xml配置为:


mapreduce.framework.name
yarn
true


yarn-site.xml配置为:


yarn.nodemanager.aux-services
mapreduce_shuffle


yarn.nodemanager.aux-services.mapreduce.shuffle.class
org.apache.hadoop.mapred.ShuffleHandler


yarn.resourcemanager.hostname
master


在启动的时候node1节点的datanode一直无法启动,同时通过ssh登录各节点都是正常。

1个回答

找不到节点,看看是不是网络的问题。

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问