Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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 am a newbie. Trying to setup a hdfs system to serve my data (I don't plan to use mapreduce) at my lab.

So far I have read, cluster setup in but I am still confused. Several questions:

  • Do I need to have a secondary namenode?
  • There are 2 files, masters and slaves. Do I really need these 2 files eventhough I just want hdfs? If I need them, what should go in there? I assume my namenode in masters and datanodes as slaves? Do I need slaves nodes
  • What configuration files are needed for namenode, secondary namenode, datanode and client? (I assume core-site.xml is needed for all 4)? In addition, can someone suggest a good configuration model? sample configuration for namenode, secondary namenode, datanode, and the client would be very helpful.

I am getting confused because it seems most of the documentation assumes I want to use map-reduce which isn't the case.

share|improve this question

To answer your 1st 2 questions 1. No you do not need secondary namenode if you dont care if the the namenode crashes 2. You need slave files to start the datanode daemons from the namenode using hadoop bash command You do not need masters file if you do not want to use secondard namenode

For your 3rd question There is step by step documentation on how to install a small hadoop cluster at

Please go thru it, you can skip the steps that talk about JobTracker and Tasktrackers and that should be enough to start your HDFS.

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.