0 0

hadoop2.x集群部署一種一個datanode無法啟動10

2015-01-16 09:08:54,145 FATAL org.apache.hadoop.hdfs.server.datanode.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配置為:
<configuration>
<property> <name>fs.defaultFS</name>
<value>hdfs://master:9000/</value>
</property>
<property>
  <name>hadoop.tmp.dir</name>
  <value>/home/yangwq/hadoop-2.6.0/temp</value>
  <description>A base for other temporary directories.</description>
</property>
</configuration>
hdfs-site.xml配置為:
<configuration>

<property>
    <name>dfs.replication</name>
    <value>2</value>
    </property>
<property>
    <name>dfs.namenode.name.dir</name>
    <value>file:/home/yangwq/hadoop-2.6.0/dfs/name</value>
    <final>true</final>
</property>
<property>
    <name>dfs.datanode.data.dir</name>
    <value>file:/home/yangwq/hadoop-2.6.0/dfs/data</value>
</property>
</configuration>
mapred-site.xml配置為:
<configuration>
<property>
        <name>mapreduce.framework.name</name>
        <value>yarn</value>
        <final>true</final>
</property>
</configuration>
yarn-site.xml配置為:
<configuration>

<!-- Site specific YARN configuration properties -->
<property>
    <name>yarn.nodemanager.aux-services</name>
    <value>mapreduce_shuffle</value>
</property>
<property>
    <name>yarn.nodemanager.aux-services.mapreduce.shuffle.class</name>
    <value>org.apache.hadoop.mapred.ShuffleHandler</value>
</property>
<!-- resourcemanager hostname或ip地址-->
<property>
    <name>yarn.resourcemanager.hostname</name>
    <value>master</value>
</property>
</configuration>
在啟動的時候node1節點的datanode一直無法啟動,同時通過ssh登錄各節點都是正常。
目前還沒有答案
Global site tag (gtag.js) - Google Analytics 开心农场种蔬菜赚钱 安徽十一选五高手推荐 吉林十一选五遗漏号 手机炒股 广西快乐双彩开奖公布 中国银行股票行情 宁夏休彩11选5走势图 股票价格指数计算例 股票怎么开户手机 广东十一选五预测app 三峡新材股票涨跌 北京快乐彩8 浙江6 1的上市时间 上海体彩11选五一牛 河南体彩481规则 当前上证指数 11选5下期算法