Hadoop2.x installation startup Error

Source: Internet
Author: User
Hadoop2 Installation notes can see: www.geedoo.infohadoop2-development-environment-to-build-test.html here mainly records the hadoop installation and testing process encountered problems record: 1. problem 1: The following exception occurs when executing the start-dfs.sh after the installation configuration is complete: sed:-eexpression #1, char6: unkn

Hadoop2 Installation notes can see: http://www.geedoo.info/hadoop2-development-environment-to-build-test.html here mainly records the hadoop installation and testing process encountered problems record: 1. problem 1: The following exception occurs when the start-dfs.sh is executed after the installation configuration is complete: sed:-e expression #1, char 6: unkn

Hadoop2 Installation notes can be found at: http://www.geedoo.info/hadoop2-development-environment-to-build-test.html

Here we mainly record the problems encountered during hadoop installation and testing:

1. Question 1

The following exception occurs when the start-dfs.sh is executed after the installation configuration is complete:

sed: -e expression #1, char 6: unknown option to `s'have: ssh: Could not resolve hostname have: Name or service not knownloaded: ssh: Could not resolve hostname loaded: Name or service not knownVM: ssh: Could not resolve hostname VM: Name or service not knownlibrary: ssh: Could not resolve hostname library: Name or service not knownwhich: ssh: Could not resolve hostname which: Name or service not knownYou: ssh: Could not resolve hostname You: Name or service not knownstack: ssh: Could not resolve hostname stack: Name or service not knownmight: ssh: Could not resolve hostname might: Name or service not knownhave: ssh: Could not resolve hostname have: Name or service not knownguard.: ssh: Could not resolve hostname guard.: Name or service not knownJava: ssh: Could not resolve hostname Java: Name or service not knowndisabled: ssh: Could not resolve hostname disabled: Name or service not knownThe: ssh: Could not resolve hostname The: Name or service not knownwill: ssh: Could not resolve hostname will: Name or service not knownVM: ssh: Could not resolve hostname VM: Name or service not knowntry: ssh: Could not resolve hostname try: Name or service not knownthe: ssh: Could not resolve hostname the: Name or service not knownfix: ssh: Could not resolve hostname fix: Name or service not knownstack: ssh: Could not resolve hostname stack: Name or service not knownServer: ssh: Could not resolve hostname Server: Name or service not knownguard: ssh: Could not resolve hostname guard: Name or service not knownto: ssh: Could not resolve hostname to: Name or service not known64-Bit: ssh: Could not resolve hostname 64-Bit: Name or service not knownyou: ssh: Could not resolve hostname you: Name or service not knownhighly: ssh: Could not resolve hostname highly: Name or service not known-c: Unknown cipher type 'cd'fix: ssh: Could not resolve hostname fix: Name or service not knownrecommended: ssh: Could not resolve hostname recommended: Name or service not knownthat: ssh: Could not resolve hostname that: Name or service not knownnow.: ssh: Could not resolve hostname now.: Name or service not knownlibrary: ssh: Could not resolve hostname library: Name or service not knownthe: ssh: Could not resolve hostname the: Name or service not knownlink: ssh: Could not resolve hostname link: Name or service not knownwith: ssh: Could not resolve hostname with: Name or service not knownor: ssh: Could not resolve hostname or: Name or service not knownnoexecstack'.: ssh: Could not resolve hostname noexecstack'.: Name or service not knownwith: ssh: Could not resolve hostname with: Name or service not knownThe authenticity of host '0.0.0.0 (0.0.0.0)' can't be established.RSA key fingerprint is fa:8e:e6:aa:3f:f9:f0:0b:48:6e:40:ca:c2:f1:02:21.Are you sure you want to continue connecting (yes/no)? it: ssh: connect to host it port 22: Connection refusedHotSpot(TM): ssh: Could not resolve hostname HotSpot(TM): Name or service not knownwarning:: ssh: Could not resolve hostname warning:: Name or service not known

After the above problem occurs, Google has been working for a long time. Most of them are about hosts configuration problems. No problems were found after the check.

The cause is that the native local library of hadoop is not set.

Solution:
Output native environment variables
export HADOOP_COMMON_LIB_NATIVE_DIR=/app/cloud/hadoop/hadoop-2.4.0/lib/native

Reference
Http://stackoverflow.com/questions/19943766/hadoop-unable-to-load-native-hadoop-library-for-your-platform-error-on-centos
Http://stackoverflow.com/questions/19775808/messed-up-sed-syntactics-in-hadoop-startup-script-after-reinstalling-jvm
Http://stackoverflow.com/questions/20011252/hadoop-2-2-0-64-bit-installing-but-cannot-start

Original article address: Hadoop2.x installation startup error. Thank you for sharing it with me.

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.