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

时间:2018-06-11 10:59:20

标签: hadoop host ufw

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

的/ etc /主机

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   时间(s);重试政策是   RetryUpToMaximumCountWithFixedSleep(maxRetries = 10,sleepTime = 1000   毫秒)

1 个答案:

答案 0 :(得分:0)

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

  1. 定义FQDN
  2. 删除127.0.1.1