Hadoop on Windows - “Error JAVA_HOME is incorrectly set.”

前端 未结 7 1124
暖寄归人
暖寄归人 2021-01-04 14:24

I\'m trying to get Hadoop running \'Local Mode\' on my Windows machine. I\'ve been using this guide: http://hadoop.apache.org/docs/r1.2.1/single_node_setup.html

When

7条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-04 15:10

     set JAVA_HOME=C:\Program Files\Java\jdk1.8.0_131\
    

    Above configuration was throwing same error as yours. I updated above with below in hadoop-env.cmd which is infact SFN

    set JAVA_HOME=C:\Progra~1\Java\jdk1.8.0_131\
    

    This allowed me to change/have different java version than that of system.

提交回复
热议问题