Error when starting Hadoop: Localhost:ssh:Could not resolve hostname localhost:temporary failure in name resolution "

Source: Internet
Author: User

This error is because the configuration file is not configured properly. The solution is as follows:

1 Open Profile File

Vim/etc/profile

2 The content that is added at the end of the document should be as follows (two highlighted sentences are generally missing):

Export JAVA_HOME=/USR/JAVA/JDK

Export hadoop_home=/itcast/hadoop-2.6.4

Export hadoop_common_lib_native_dir= $HADOOP _home/lib/native
Export hadoop_opts= "-djava.library.path= $HADOOP _home/lib"

Export path= $PATH: $JAVA _home/bin: $HADOOP _home/bin

3 re-execute the file

Source/etc/profile

At this point, the problem is resolved.

Error when starting Hadoop: Localhost:ssh:Could not resolve hostname localhost:temporary failure in name resolution "

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.