JAVA _Home is not set in Hadoop

前端 未结 8 1194
耶瑟儿~
耶瑟儿~ 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:27

    I had the same error and solved it with Soil Jain's remark, but to make it even a bit more clear: the hadoop-env.sh uses an expression such as

    export JAVA_HOME=${JAVA_HOME}
    

    if you hard-code the path to your JVM installation it works

    export JAVA_HOME=/usr/lib/jvm/java...
    

    this resolution by environmental variable as is seems to fail. Hard-coding fixed the problem for me.

提交回复
热议问题