FAQ
I have confirmed java is installed on the machine in question, using the
java -version command. I have included that output below. I have also
attached the hadoop config bundle.

ubuntu@agent1-cdh3u3:~$ java -version
java version "1.6.0_31"
Java(TM) SE Runtime Environment (build 1.6.0_31-b04)
Java HotSpot(TM) 64-Bit Server VM (build 20.6-b01, mixed mode)

On Wednesday, September 19, 2012 5:50:26 PM UTC-4, zs-rev wrote:

Hi,

I have installed CDH3U3 on a five node cluster. All the node machines are
Ubuntu 10.04. The Cloudera Manager indicates that all the services
installed are running with good health. However, when I shell into the
machines to run some hadoop commands, I get the JAVA_HOME error found
below. It seems that java must be installed, or hadoop and the rest of the
services would not be running. So my question is whether it is typical for
this sort of behavior to occur? Also, to fix it, would you just set the
JAVA_HOME environment variable in the relevant users .bashrc file ? Should
Cloudera Manager have performed this step ?

Thanks.

Command:
ubuntu@agent1-cdh3u3:~$ hadoop fs -ls

Error:

+======================================================================+
Error: JAVA_HOME is not set and Java could not be found |
+----------------------------------------------------------------------+
Please download the latest Sun JDK from the Sun Java web site |
Hadoop requires Java 1.6 or later. |
NOTE: This script will find Sun Java whether you install using the |
binary or the RPM based installer. |
+======================================================================+


Search Discussions

  • Zs-rev at Sep 19, 2012 at 10:19 pm
    Hi,

    I have installed CDH3U3 on a five node cluster. All the node machines are
    Ubuntu 10.04. The Cloudera Manager indicates that all the services
    installed are running with good health. However, when I shell into the
    machines to run some hadoop commands, I get the JAVA_HOME error found
    below. It seems that java must be installed, or hadoop and the rest of the
    services would not be running. So my question is whether it is typical for
    this sort of behavior to occur? Also, to fix it, would you just set the
    JAVA_HOME environment variable in the relevant users .bashrc file ? Should
    Cloudera Manager have performed this step ?

    Thanks.

    Command:
    ubuntu@agent1-cdh3u3:~$ hadoop fs -ls

    Error:

    +======================================================================+
    Error: JAVA_HOME is not set and Java could not be found |
    +----------------------------------------------------------------------+
    Please download the latest Sun JDK from the Sun Java web site |
    Hadoop requires Java 1.6 or later. |
    NOTE: This script will find Sun Java whether you install using the |
    binary or the RPM based installer. |
    +======================================================================+
  • Dalia Hassan at Sep 20, 2012 at 9:48 am
    Hiii,

    Are you installing the CM manually or using the web interface http://IP:port??
    On Wed, Sep 19, 2012 at 11:59 PM, zs-rev wrote:

    I have confirmed java is installed on the machine in question, using the
    java -version command. I have included that output below. I have also
    attached the hadoop config bundle.

    ubuntu@agent1-cdh3u3:~$ java -version
    java version "1.6.0_31"
    Java(TM) SE Runtime Environment (build 1.6.0_31-b04)
    Java HotSpot(TM) 64-Bit Server VM (build 20.6-b01, mixed mode)

    On Wednesday, September 19, 2012 5:50:26 PM UTC-4, zs-rev wrote:

    Hi,

    I have installed CDH3U3 on a five node cluster. All the node machines are
    Ubuntu 10.04. The Cloudera Manager indicates that all the services
    installed are running with good health. However, when I shell into the
    machines to run some hadoop commands, I get the JAVA_HOME error found
    below. It seems that java must be installed, or hadoop and the rest of the
    services would not be running. So my question is whether it is typical for
    this sort of behavior to occur? Also, to fix it, would you just set the
    JAVA_HOME environment **variable in the relevant users .bashrc file ?
    Should Cloudera Manager have performed this step ?

    Thanks.

    Command:
    ubuntu@agent1-cdh3u3:~$ hadoop fs -ls

    Error:

    +=============================**==============================**
    ===========+
    Error: JAVA_HOME is not set and Java could not be found |
    +-----------------------------**------------------------------**
    -----------+
    Please download the latest Sun JDK from the Sun Java web site |
    Hadoop requires Java 1.6 or later. |
    NOTE: This script will find Sun Java whether you install using the |
    binary or the RPM based installer. |
    +=============================**==============================**
    ===========+


  • Zach Schweinfurth at Sep 20, 2012 at 12:21 pm
    I installed CDH3U3 using the web interface of CM.
    On Thu, Sep 20, 2012 at 5:40 AM, Dalia Hassan wrote:

    Hiii,

    Are you installing the CM manually or using the web interface
    http://IP:port ??

    On Wed, Sep 19, 2012 at 11:59 PM, zs-rev wrote:

    I have confirmed java is installed on the machine in question, using the
    java -version command. I have included that output below. I have also
    attached the hadoop config bundle.

    ubuntu@agent1-cdh3u3:~$ java -version
    java version "1.6.0_31"
    Java(TM) SE Runtime Environment (build 1.6.0_31-b04)
    Java HotSpot(TM) 64-Bit Server VM (build 20.6-b01, mixed mode)

    On Wednesday, September 19, 2012 5:50:26 PM UTC-4, zs-rev wrote:

    Hi,

    I have installed CDH3U3 on a five node cluster. All the node machines
    are Ubuntu 10.04. The Cloudera Manager indicates that all the services
    installed are running with good health. However, when I shell into the
    machines to run some hadoop commands, I get the JAVA_HOME error found
    below. It seems that java must be installed, or hadoop and the rest of the
    services would not be running. So my question is whether it is typical for
    this sort of behavior to occur? Also, to fix it, would you just set the
    JAVA_HOME environment **variable in the relevant users .bashrc file ?
    Should Cloudera Manager have performed this step ?

    Thanks.

    Command:
    ubuntu@agent1-cdh3u3:~$ hadoop fs -ls

    Error:

    +=============================**==============================**
    ===========+
    Error: JAVA_HOME is not set and Java could not be found |
    +-----------------------------**------------------------------**
    -----------+
    Please download the latest Sun JDK from the Sun Java web site |
    Hadoop requires Java 1.6 or later. |
    NOTE: This script will find Sun Java whether you install using the |
    binary or the RPM based installer. |
    +=============================**==============================**
    ===========+



    --
    Zachary Schweinfurth
    Ontology Engineer
    Revelytix, Inc.
  • Zach Schweinfurth at Sep 21, 2012 at 2:07 pm
    Any suggestions would be greatly appreciated. Thanks.
    On Thu, Sep 20, 2012 at 8:21 AM, Zach Schweinfurth wrote:

    I installed CDH3U3 using the web interface of CM.

    On Thu, Sep 20, 2012 at 5:40 AM, Dalia Hassan wrote:

    Hiii,

    Are you installing the CM manually or using the web interface
    http://IP:port ??

    On Wed, Sep 19, 2012 at 11:59 PM, zs-rev wrote:

    I have confirmed java is installed on the machine in question, using the
    java -version command. I have included that output below. I have also
    attached the hadoop config bundle.

    ubuntu@agent1-cdh3u3:~$ java -version
    java version "1.6.0_31"
    Java(TM) SE Runtime Environment (build 1.6.0_31-b04)
    Java HotSpot(TM) 64-Bit Server VM (build 20.6-b01, mixed mode)

    On Wednesday, September 19, 2012 5:50:26 PM UTC-4, zs-rev wrote:

    Hi,

    I have installed CDH3U3 on a five node cluster. All the node machines
    are Ubuntu 10.04. The Cloudera Manager indicates that all the services
    installed are running with good health. However, when I shell into the
    machines to run some hadoop commands, I get the JAVA_HOME error found
    below. It seems that java must be installed, or hadoop and the rest of the
    services would not be running. So my question is whether it is typical for
    this sort of behavior to occur? Also, to fix it, would you just set the
    JAVA_HOME environment **variable in the relevant users .bashrc file ?
    Should Cloudera Manager have performed this step ?

    Thanks.

    Command:
    ubuntu@agent1-cdh3u3:~$ hadoop fs -ls

    Error:

    +=============================**==============================**
    ===========+
    Error: JAVA_HOME is not set and Java could not be found |
    +-----------------------------**------------------------------**
    -----------+
    Please download the latest Sun JDK from the Sun Java web site |
    Hadoop requires Java 1.6 or later. |
    NOTE: This script will find Sun Java whether you install using the |
    binary or the RPM based installer. |
    +=============================**==============================**
    ===========+



    --
    Zachary Schweinfurth
    Ontology Engineer
    Revelytix, Inc.

    --
    Zachary Schweinfurth
    Ontology Engineer
    Revelytix, Inc.
  • Dalia Hassan at Sep 22, 2012 at 3:18 pm
    May be this is not the java needed.

    I recommend installing:

    $ sudo apt-get -f install

    $ sudo apt-get install libasound2 libxi6 libxt6 libxtst6

    $ wget
    http://archive.cloudera.com/cm4/ubuntu/precise/amd64/cm/pool/contrib/o/oracle-j2sdk1.6/oracle-j2sdk1.6_1.6.0+update31_amd64.deb

    $ sudo dpkg -i oracle-j2sdk1.6_1.6.0+update31_amd64.deb


    I already did so bec I have some problems in java and it worked out after
    executing the above commands.

    Keep me updated with your progress..
    On Fri, Sep 21, 2012 at 4:07 PM, Zach Schweinfurth wrote:

    Any suggestions would be greatly appreciated. Thanks.


    On Thu, Sep 20, 2012 at 8:21 AM, Zach Schweinfurth <
    zschweinfurth@revelytix.com> wrote:
    I installed CDH3U3 using the web interface of CM.

    On Thu, Sep 20, 2012 at 5:40 AM, Dalia Hassan wrote:

    Hiii,

    Are you installing the CM manually or using the web interface
    http://IP:port ??

    On Wed, Sep 19, 2012 at 11:59 PM, zs-rev wrote:

    I have confirmed java is installed on the machine in question, using
    the java -version command. I have included that output below. I have also
    attached the hadoop config bundle.

    ubuntu@agent1-cdh3u3:~$ java -version
    java version "1.6.0_31"
    Java(TM) SE Runtime Environment (build 1.6.0_31-b04)
    Java HotSpot(TM) 64-Bit Server VM (build 20.6-b01, mixed mode)

    On Wednesday, September 19, 2012 5:50:26 PM UTC-4, zs-rev wrote:

    Hi,

    I have installed CDH3U3 on a five node cluster. All the node machines
    are Ubuntu 10.04. The Cloudera Manager indicates that all the services
    installed are running with good health. However, when I shell into the
    machines to run some hadoop commands, I get the JAVA_HOME error found
    below. It seems that java must be installed, or hadoop and the rest of the
    services would not be running. So my question is whether it is typical for
    this sort of behavior to occur? Also, to fix it, would you just set the
    JAVA_HOME environment **variable in the relevant users .bashrc file ?
    Should Cloudera Manager have performed this step ?

    Thanks.

    Command:
    ubuntu@agent1-cdh3u3:~$ hadoop fs -ls

    Error:

    +=============================**==============================**
    ===========+
    Error: JAVA_HOME is not set and Java could not be found
    +-----------------------------**------------------------------**
    -----------+
    Please download the latest Sun JDK from the Sun Java web site

    Hadoop requires Java 1.6 or later.

    NOTE: This script will find Sun Java whether you install using the

    binary or the RPM based installer.
    +=============================**==============================**
    ===========+



    --
    Zachary Schweinfurth
    Ontology Engineer
    Revelytix, Inc.

    --
    Zachary Schweinfurth
    Ontology Engineer
    Revelytix, Inc.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupscm-users @
categorieshadoop
postedSep 19, '12 at 10:07p
activeSep 22, '12 at 3:18p
posts6
users2
websitecloudera.com
irc#hadoop

2 users in discussion

Zach Schweinfurth: 4 posts Dalia Hassan: 2 posts

People

Translate

site design / logo © 2022 Grokbase