The Execute Hadoop command in the Windows environment appears Error:java_home is incorrectly set please update D:\SoftWare\hadoop-2.6.0\conf\ Hadoop-env.cmd the wrong solution (graphic and detailed)

Source: Internet
Author: User
Tags zookeeper lenovo

Not much to say, directly on the dry goods!

Guide

Install Hadoop under win
Everyone, do not underestimate win under the installation of Big data components and use played Dubbo and disconf friends, all know that in win under the installation of zookeeper is often the Disconf learning series of the entire network the most detailed latest stable disconf deployment (based on Windows7 /8/10) (detailed) Disconf Learning series of the full network of the latest stable disconf deployment (based on Ubuntu14.04/ 16.04) (detailed) how to properly install zookeeper in Windows to run the service (blogger recommended) (graphic)

  Question Details

For example, under Win cmd, execute the following command, will appear

Someone would be very curious to say

First hit the next java-version, right AH.

C:\users\lenovo>java-"1.8.0_66"1.8. 0_66-   - 25.66-B18, mixed mode) C:\Users\lenovo>

See Hadoop_home's system environment variables, yes, that's why? And listen to me as follows slowly.

Problem analysis

In this case, your JDK is installed under the C drive, and if it is a non-C drive, it will not normally happen.

    Workaround (If your JDK is installed on the C drive)

This sub-condition, if your JDK is installed on the C drive, for example to keep the default

  

The

  

Found it

  Method 1. Use path substitution

C:\progra~1\java\jdk1.8.0_66

  Because PROGRA~1 is the abbreviation for the C:\Program Files directory in DOS file name mode.
Filenames and folder names longer than 8 characters are simplified to the first 6 valid characters, followed by a ~2,~3 with the same name,

Set java_home=c:\progra~1\java\jdk1. 8. 0_66

C:\users\lenovo>Hadoop Versionhadoop2.6.0Subversion https://git-wip-us.apache.org/repos/asf/hadoop.git-r E3496499ECB8D220FBA99DC5ED4C99C8F9E33BB1Compiled by Jenkins on the- One-13t21:10zcompiled with Protoc2.5.0From source with checksum 18e43357c8f927c0695f1e9522859d6athis command is runusing/d:/software/hadoop-2.6.0/share/hadoop/common/hadoop-common-2.6.0. Jarc:\users\lenovo>

  Method 2, enclose it in quotation marks.

Set java_home= "C:\Program Files" \java\jdk1.8.0_66

C:\users\lenovo>Hadoop version'C:\Program'is not an internal or external command, or a program or batch file that can be run. Hadoop2.6.0Subversion https://git-wip-us.apache.org/repos/asf/hadoop.git-r E3496499ECB8D220FBA99DC5ED4C99C8F9E33BB1Compiled by Jenkins on the- One-13t21:10zcompiled with Protoc2.5.0From source with checksum 18e43357c8f927c0695f1e9522859d6athis command is runusing/d:/software/hadoop-2.6.0/share/hadoop/common/hadoop-common-2.6.0. Jarc:\users\lenovo>

    Workaround (If your JDK is installed on a non-C drive)

     There is no need to modify the hadoop-env.cmd.

For example, your installation in E:\software\jdk1.8

However, if your JDK is such as the program files installed under the D drive, It is D:\Program files "\java\jdk1.7.0_03, but why not?"

Set Java_home="D:\Program Files"\java\jdk1. 7. 0_03

Can only say, perhaps at present is a debug bar. It is recommended that the JDK is installed by default in the C drive letter.

welcome everyone, join my public number: Big Data lie over the pit ai lie in the pit  

At the same time, you can follow my personal blog :

http://www.cnblogs.com/zlslch/ and http://www.cnblogs.com/lchzls/ Http://www.cnblogs.com/sunn ydream/

For details, see: http://www.cnblogs.com/zlslch/p/7473861.html

Life is short, I would like to share. This public number will uphold the old learning to learn the endless exchange of open source spirit, gathered in the Internet and personal learning work of the essence of dry knowledge, everything to the Internet, feedback back to the Internet.
Current research areas: Big data, machine learning, deep learning, artificial intelligence, data mining, data analysis. Languages include: Java, Scala, Python, Shell, Linux, and more. It also covers the usual use of mobile phones, computers and the Internet using tips, problems and practical software. As long as you focus and stay in the group, every day must have a harvest

corresponding to the platform discussion and answer QQ group: Big Data and artificial intelligence lying in the pit (total group) (161156071)

The Execute Hadoop command in the Windows environment appears Error:java_home is incorrectly set please update D:\SoftWare\hadoop-2.6.0\conf\ Hadoop-env.cmd the wrong solution (graphic and detailed)

Related Article

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.