Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to configure hadoop to run in pseudo-distributed mode. My configuration files:







the hadoop version I'm using command hadoop version is:

Subversion -r 1099333
Compiled by oom on Wed May  4 07:57:50 PDT 2011

I have set the JAVA_HOME environmental variable to:(I'm using fedora 15)


the output of export $JAVA_HOME is:


But when I run it says:

localhost: Error: JAVA_HOME is not set.

The only thing that log files show is the above statement. Could anyone help?

share|improve this question
up vote 3 down vote accepted

Check the file in the Hadoop conf directory. Ensure the line exporting JAVA_HOME has been uncommented and set appropriately.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.