Hadoop OPS (1) Noroutetohostexception:no route to host

Source: Internet
Author: User

This error often occurs when a user uploads data to HDFs

HDFs. dfsclient:Exception in Createblockoutputstream Java. net. noroutetohostexception:No route to host


In this case, the online solution is usually to tell the firewall to shut down, as to which host the firewall does not mention.


To view the log file, just that no route to host does not mention the port, the solution is to shut down the firewall for all hosts, Namenode and slave nodes. This is true if only the firewall problem for the host Namenode is turned off.

#service iptables Stop

Or

#chkconfig iptables on/off

Turn off SELinux

Vi/etc/selinux/config

Change the selinux=enforcing to:

Selinux=disabled

This article is from the "Longan" blog, please be sure to keep this source http://xulongping.blog.51cto.com/5676840/1606053

Hadoop OPS (1) Noroutetohostexception:no route to host

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.