JAVA _Home is not set in Hadoop

前端 未结 8 1254
耶瑟儿~
耶瑟儿~ 2021-01-05 00:03

I am a beginner with hadoop and trying to install and run hadoop in my Ubuntu as a single node cluster. This is my JAVA_HOME in my hadoop_env.sh

# The java          


        
8条回答
  •  醉酒成梦
    2021-01-05 00:22

    I debugged the code and found out that even though JAVA_HOME is set in the environment, the value is lost as ssh connections to other hosts is made inside the code, and the JAVA_HOME variable that was showing well set in start-dfs.sh became unset in hadoop-env.sh.

    The solution to this problem will be to set JAVA_HOME variable in hadoop-env.sh and it should work properly.

提交回复
热议问题