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

后端 未结 11 653
天命终不由人
天命终不由人 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:11

    I also had faced the similar problem in hadoop 1.1 I had not noticed that the JAVA_HOME was commented in: hadoop/conf/hadoop-env.sh

    It was

    /#JAVA_HOME=/usr/lib/jvm/java-6-oracle
    

    Had to change it to

    JAVA_HOME=/usr/lib/jvm/java-6-oracle
    

提交回复
热议问题