No in Hadoop 0.23

The first thing to do after downloading and extracting Hadoop is to set JAVA_HOME in the $HADOOP_HOME/conf/ file. Almost all documentation on Hadoop site expects the above configuration but I guess that was for version 0.20. When I downloaded Hadoop 0.23 today and looked for the file, I could not find it anywhere in the extracted archive.

After a bit of Googling I realized that things have changed in 0.23 version and now I will have to look for the file in the $HADOOP_HOME/etc/hadoop directory instead. Unfortunately I couldn’t find the file there either.

As a last resort I created a file named in the $HADOOP_HOME/etc/hadoop directory and set my JAVA_HOME there. The one and only line in that file is given below. Fortunately after that addition, the hadoop command started working and everything went normal again.

export JAVA_HOME=/usr/lib/jvm/java-6-openjdk/

Ganeshji Marwaha

I spend my days as the Director of Technology for Mobility practice and help my clients design enterprise and consumer mobile strategies. Mobile Payments, Digital Wallet and Tokenization technologies are my areas of specialization

  • Thanks, that’s useful info. Maybe you can cover a complete blog post on how to setup Hadoop 0.23 with HBase 0.93 (or 0.94) sometime?

  • This seems to be pretty much the standard operating procedure while working with open source software no?!

    [1] Google/Bing it
    [2] Do what the blog says
    [3] If it still doesn’t work go to step

  • ๐Ÿ™‚ Here’s step 3 again – this time in full:

    [3] If it still doesn’t work, go to step 1

  • Ganeshji Marwaha

    @Shantanu – Sure. Will do one soon…

    @Raj – Well said, except for the [Bing] part ๐Ÿ˜‰

  • More choice is always good no? DuckDuckGo is another search engine that seems to be gaining notoriety…

  • Hi Ganeshji,

    Nice blog! Is there an email address I can contact you in private?

  • Ganeshji Marwaha

    Sure, @Ilias Tsagklis. Email me at ganeshread [at the rate of] gmail

  • I guess you are a computer genius.I could never think of such an addition.Its really unbelievable.Great job.