ERROR: JAVA_HOME is not set and could not be found.

问题描述:今天在启动Hadoop时发现显示报错:JAVA_HOME is not set and could not be found。

      但我昨天明明还是启动成功的,那这不就是见鬼了???

 

 

问题解决:

    发现当前用户是超级用户,而当时在设置环境时用的是普通用户,所以只需切换成相应用户即可。

 

posted @ 2023-01-11 09:29  先娶国王后取经  阅读(288)  评论(0编辑  收藏  举报