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 recently installed Hadoop 1.0.3 from the .deb provided by Apache. The package installed correctly, but there seem to be two directories that have Hadoop-related files: /usr/share/hadoop has jars and the site configuration files, while /etc/hadoop has and some other XMLs; all of the Hadoop literature I've read thus far seems to assume there is only a single Hadoop install directory; could someone please elaborate on these two directories and their respective purposes?


share|improve this question
up vote 2 down vote accepted

/usr/share is a platform-independent shared data directory (and hadoop is in java...) and /etc/hadoop is mostly host specific system and application configuration files.

Then, to configure hadoop, just use the following command and answer yes, yes, yes... !

sudo ./usr/sbin/


sudo ./usr/sbin/ --user=hdfs

Complete tutorial for single node

share|improve this answer
Hi Yohann, Thanks for your answer. Would it be accurate to say that /etc/hadoop is $HADOOP_HOME, and if so, why does it not include core-site.xml, mapred-site.xml, and hdfs-site.xml? Should I create a conf directory and copy /usr/share/hadoop/templates/conf/*-site.xml to /etc/hadoop/conf/ ? – ILikeFood May 22 '12 at 19:50
See the edit in my post. – Yohann May 22 '12 at 20:01
That clarified things; thanks for your help! – ILikeFood May 22 '12 at 22:59
very helpful for me as well! – l--''''''---------'''''''''''' May 3 '13 at 22:49

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.