Results 1 to 4 of 4

Thread: Java - Hadoop

Hybrid View

  1. #1
    Join Date
    Dec 2012
    Beans
    7

    Java - Hadoop

    Hello,
    I installed Java Sun 6 for Hadoop file system but everytime I try to set it as Java Home, it gets back to be not set as soon as I close the terminal.
    Can anyone tell me what to do ?

    I used the commands :
    sudo apt-get install sun-java6-jdk
    sudo update-java-alternatives -s java-6-sun
    export JAVA_HOME=/usr/lib/jvm/java-1.6.0_24
    echo $JAVA_HOME

    Thanks in advance.

  2. #2
    Join Date
    Dec 2012
    Beans
    7

    Re: Java - Hadoop

    any help ?

  3. #3
    Join Date
    Jun 2009
    Location
    Earth
    Beans
    57
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Java - Hadoop

    Based on a tip I found here: http://ubuntuforums.org/archive/inde...t-1010605.html (near the end of the thread), I installed the following in /etc/profile.d/set_java_home.sh:

    Code:
    export JAVA_HOME=$(dirname $(dirname $(readlink -e /usr/bin/java)))
    Not sure this is the best way, but it so far seems the most automatic way. Before I did this, the static entry I had there became outdated every time Java was updated.

    Anyway, hopefully someone will find this helpful.
    - Frank

  4. #4
    Join Date
    Dec 2012
    Beans
    7

    Re: Java - Hadoop

    Indeed, this link has the solution!
    the solution lied in the reply of December 14th, 2008, 05:59 AM.
    Thank you so much !

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •