Working With Hadoop: localhost: Error: JAVA_HOME is not set

后端 未结 11 651
天命终不由人
天命终不由人 2020-12-13 02:19

I\'m working with Ubuntu 12.04 LTS.

I\'m going through the hadoop quickstart manual to make a pseudo-distributed operation. It seems simple and straightforward (eas

11条回答
  •  情话喂你
    2020-12-13 03:19

    The way to solve this problem is to export the JAVA_HOME variable inside the conf/hadoop-env.sh file.

    It doesn't matter if you already exported that variable in ~/.bashrc, it'll still show the error.

    So edit conf/hadoop-env.sh and uncomment the line "export JAVA_HOME" and add a proper filesystem path to it, i.e. the path to your Java JDK.

    # The Java implementation to use. Required.
    export JAVA_HOME="/path/to/java/JDK/"

提交回复
热议问题