Hadoop: «ERROR : JAVA_HOME is not set»

前端 未结 12 1833
借酒劲吻你
借酒劲吻你 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:00

    I solved this in my env, without modify hadoop-env.sh

    You'd be better using /bin/bash as default shell not /bin/sh

    Check these before:

    1. You have already config java and env (success echo $JAVA_HOME)
    2. right config hadoop

    echo $SHELL in every node, check if print /bin/bash if not, vi /etc/passwd, add /bin/bash at tail of your username ref

    Changing default shell in Linux

    https://blog.csdn.net/whitehack/article/details/51705889

提交回复
热议问题