centOS7.0 configuration Hadoop cluster, Slave1 error: Failed on socket timeout exception:java.net.NoRouteToHostException

Source: Internet
Author: User
Tags deprecated iptables


Hadoop version: 2.5.0

When you configure the Hadoop cluster, on master, when you start the./start-all.sh under Directory/usr/hadoop/sbin/, on the master host

[Hadoop@master sbin]$./start-all.sh
This script is deprecated. Instead Use start-dfs.sh and start-yarn.sh
Starting namenodes on [Master.hadoop]
Master.Hadoop:starting Namenode, logging to/usr/hadoop/logs/hadoop-hadoop-namenode-master.hadoop.out
192.168.86.129:starting Datanode, logging to/usr/hadoop/logs/hadoop-hadoop-datanode-slaver1.hadoop.out
Starting secondary namenodes [0.0.0.0]
0.0.0.0:starting Secondarynamenode, logging to/usr/hadoop/logs/hadoop-hadoop-secondarynamenode-master.hadoop.out
Starting Yarn Daemons
Starting ResourceManager, logging to/usr/hadoop/logs/yarn-hadoop-resourcemanager-master.hadoop.out
192.168.86.129:starting NodeManager, logging to/usr/hadoop/logs/yarn-hadoop-nodemanager-slaver1.hadoop.out
[Hadoop@master sbin]$ JPS
10474 Jps
10217 ResourceManager
9885 Namenode
10069 Secondarynamenode

visible has been successfully started, on the Slave1 datanode node machine

[Hadoop@slave1 ~]$ JPS
5098 NodeManager
5000 Datanode
5184 Jps

visible also has started successfully, but when Dfsadmin-report, reported the following error

[Hadoop@slave1 ~]$ Hadoop Dfsadmin-report
Deprecated:use of this script to execute HDFS the command is deprecated.
Instead Use the HDFs command for it.

14/09/29 10:10:58 INFO IPC. Client:retrying Connect to server:master.hadoop/192.168.86.128:9000. Already tried 0 time (s); Maxretries=45
Report:no Route to Host from slave1.hadoop/192.168.86.129 to master.hadoop:9000 failed on socket timeout Exception:java . Net. Noroutetohostexception:no route to host; For more details See:http://wiki.apache.org/hadoop/noroutetohost

after searching, it was found that the firewall was not closed.

in the previous Linux version, use the service iptables Stop command to shut down the firewall, but after the centOS7.0, change command can not be used.

centOS7.0 The above services are SYSTEMCTL commands for start, stop, restart.

and on the centOS7.0, the firewall is no longer a iptables, but a firewall, so execute on both master and SLAVE1 (first switch to root)

[Hadoop@slave1 ~]$ Su-root
Password:
Last Login:mon Sep 10:20:31 CST 2014 on pts/0
[Root@slave1 ~]# Systemctl Stop Firewalld.service

now look at the storage of master and Slave1 Hadoop .

MASTER

[Hadoop@master sbin]$ Hadoop Dfadmin-report
Error:could not find or Load main class Dfadmin
[Hadoop@master sbin]$ Hadoop Dfsadmin-report
Deprecated:use of this script to execute HDFS the command is deprecated.
Instead Use the HDFs command for it.

Configured capacity:12572426240 (11.71 GB)
Present capacity:6669115392 (6.21 GB)
DFS remaining:6669111296 (6.21 GB)
DFS used:4096 (4 KB)
DFS used%: 0%
Under Replicated blocks:0
Blocks with corrupt replicas:0
Missing blocks:0

-------------------------------------------------
Live datanodes (1):

name:192.168.86.129:50010 (Slaver1.hadoop)
Hostname:Slaver1.Hadoop
Decommission Status:normal
Configured capacity:12572426240 (11.71 GB)
DFS used:4096 (4 KB)
Non DFS used:5903310848 (5.50 GB)
DFS remaining:6669111296 (6.21 GB)
DFS used%: 0%
DFS remaining%: 53.05%
Configured Cache capacity:0 (0 B)
Cache used:0 (0 B)
Cache remaining:0 (0 B)
Cache used%: 100%
Cache remaining%: 0%
Xceivers:1
Last Contact:mon Sep 10:57:04 CST 2014

SLAVE1

[Hadoop@slaver1 ~]$ Hadoop Dfsadmin-report
Deprecated:use of this script to execute HDFS the command is deprecated.
Instead Use the HDFs command for it.

Configured capacity:12572426240 (11.71 GB)
Present capacity:6669012992 (6.21 GB)
DFS remaining:6669008896 (6.21 GB)
DFS used:4096 (4 KB)
DFS used%: 0%
Under Replicated blocks:0
Blocks with corrupt replicas:0
Missing blocks:0

-------------------------------------------------
Live datanodes (1):

name:192.168.86.129:50010 (Slaver1.hadoop)
Hostname:Slaver1.Hadoop
Decommission Status:normal
Configured capacity:12572426240 (11.71 GB)
DFS used:4096 (4 KB)
Non DFS used:5903413248 (5.50 GB)
DFS remaining:6669008896 (6.21 GB)
DFS used%: 0%
DFS remaining%: 53.04%
Configured Cache capacity:0 (0 B)
Cache used:0 (0 B)
Cache remaining:0 (0 B)
Cache used%: 100%
Cache remaining%: 0%
Xceivers:1
Last Contact:mon Sep 10:28:18 CST 2014




Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.