重试连接到服务器:hadoopmaster / IP:9000

问题描述 投票:0回答:1

我安装了Hadoop 2.9.0。我检查了从属节点中的jps,在奴隶中运行datanodenodemanager,在master中运行namenoderesourcemanager。请帮忙,为什么会出现这个错误?根据提出的解决方案,我禁用了firewallSELinuxIPv6。问题是web UI中的Live nodes为0。

/ etc / hosts中:

1       localhost
127.0.1.1       hadoopmaster

#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.111.154 hadoopmaster
192.168.111... hadoopslave1
192.168.111... hadoopslave2
192.168.111... hadoopslave3

在所有节点中配置:

核心-site.xml中:

<configuration>
    <property>
        <name>fs.defaultFS</name>
        <value>hdfs://hadoopmaster:9000</value>
    </property>
</configuration>

纱的site.xml:

<configuration>
<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>
 <property>
   <name>yarn.resourcemanager.resource-tracker.address</name>
   <value>hadoopmaster:8025</value>
 </property>
 <property>
   <name>yarn.resourcemanager.scheduler.address</name>
   <value>hadoopmaster:8030</value>
 </property>
 <property>
   <name>yarn.resourcemanager.address</name>
   <value>hadoopmaster:8050</value>
 </property>
</configuration>

netstat -nap | grep 9000的输出:

tcp        0      0 127.0.1.1:9000          0.0.0.0:*               LISTEN      18205/java      
tcp        0      0 127.0.0.1:59048         127.0.1.1:9000          TIME_WAIT   - 

我重新启动hadoop并再次格式化namenode并且agin但是我仍然得到这个错误:(hadoop-hadoop-datanode-hadoopslave1.log)

2018-06-11 02:42:33,593 INFO org.apache.hadoop.ipc.Client:重试连接到服务器:hadoopmaster / 192.168.111.154:9000。已经尝试了4次;重试策略是RetryUpToMaximumCountWithFixedSleep(maxRetries = 10,sleepTime = 1000 MILLISECONDS)

hadoop host ufw
1个回答
0
投票

我得到了解决方案。编辑/ etc / hosts

  1. 定义FQDN
  2. 删除127.0.1.1
© www.soinside.com 2019 - 2024. All rights reserved.