Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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 hadoop-env.sh 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?

Thanks.

share|improve this question
add comment

1 Answer 1

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/hadoop-setup-single-node.sh

Then

sudo ./usr/sbin/hadoop-validate-setup.sh --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! –  Yuck May 3 '13 at 22:49
add comment

Your Answer

 
discard

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.