Hadoop: «ERROR : JAVA_HOME is not set»

前端 未结 12 1831
借酒劲吻你
借酒劲吻你 2020-12-13 17:13

I\'m trying to install Hadoop on Ubuntu 11.10. I set the JAVA_HOME variable in the file conf/hadoop-env.sh to:

# export JAVA_HOME=         


        
12条回答
  •  渐次进展
    2020-12-13 18:06

    You can add in your .bashrc file:

    export JAVA_HOME=$(readlink -f /usr/bin/java | sed "s:bin/java::")
    

    and it will dynamically change when you update your packages.

提交回复
热议问题