Windows installation hadoopJAVA_HOME has a solution with spaces

Install hadoop in windows, if there is a space in JAVA_HOME, the following error will be reported

hadoop Error: JAVA_HOME is incorrectly set.

Solution, set soft connection, reconfigure JAVA_HOME

 

Use cmd to create a soft connection:

mklink /J D:\tools\java "D:\Program Files\Java\jdk1.7.0_67" 

 

Then reconfigure JAVA_HOME

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326942647&siteId=291194637