ZBLOG

windows hadoop JAVA_HOME is incorrectly set

If you encounter the error “JAVA_HOME is incorrectly set” when running Hadoop on Windows, it means that the JAVA_HOME environment variable is not properly configured.

To fix this issue, follow these steps:

  1. Open Control Panel and navigate to System and Security > System > Advanced system settings.
  2. Click on Environment Variables button at the bottom of the window.
  3. Under System Variables section, scroll down and locate the JAVA_HOME variable.
  4. If JAVA_HOME does not exist, click on New button and add a new system variable with name JAVA_HOME and value as the path to your Java installation directory (e.g., C:\Program Files\Java\jdk1.8.0_191).
  5. If JAVA_HOME already exists but points to an incorrect location, update its value to point to the correct Java installation directory.
  6. Click OK to close all windows.

Once you have properly configured the JAVA_HOME environment variable, try running Hadoop again. The error should be resolved now.

本站部分文章来源于网络,版权归原作者所有,如有侵权请联系站长删除。
转载请注明出处:https://golang.0voice.com/?id=5725

分享:
扫描分享到社交APP
上一篇
下一篇
发表列表
游客 游客
此处应有掌声~
评论列表

还没有评论,快来说点什么吧~

联系我们

在线咨询: 点击这里给我发消息

微信号:3007537140

上班时间: 10:30-22:30

关注我们
x

注册

已经有帐号?