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 want to start hadoop on my macbook pro, I did all the steps that apache says. When I use the command "bin/", I get this:

starting namenode, logging to /Users/alibozorgkhan/Desktop/hadoop-
localhost: starting datanode, logging to /Users/alibozorgkhan/Desktop/hadoop-
localhost: starting secondarynamenode, logging to /Users/alibozorgkhan/Desktop/hadoop-
starting jobtracker, logging to /Users/alibozorgkhan/Desktop/hadoop-
localhost: starting tasktracker, logging to /Users/alibozorgkhan/Desktop/hadoop-

Hadoop doesn't start. I checked the log for datanode and it has this:

2011-10-06 18:03:45,513 ERROR org.apache.hadoop.hdfs.server.datanode.DataNode: java.lang.NullPointerException
    at org.apache.hadoop.hdfs.server.namenode.NameNode.getAddress(
    at org.apache.hadoop.hdfs.server.namenode.NameNode.getAddress(
    at org.apache.hadoop.hdfs.server.namenode.NameNode.getServiceAddress(
    at org.apache.hadoop.hdfs.server.datanode.DataNode.startDataNode(
    at org.apache.hadoop.hdfs.server.datanode.DataNode.<init>(
    at org.apache.hadoop.hdfs.server.datanode.DataNode.makeInstance(
    at org.apache.hadoop.hdfs.server.datanode.DataNode.instantiateDataNode(
    at org.apache.hadoop.hdfs.server.datanode.DataNode.createDataNode(
    at org.apache.hadoop.hdfs.server.datanode.DataNode.secureMain(
    at org.apache.hadoop.hdfs.server.datanode.DataNode.main(

Any idea how to fix this? Thanx

share|improve this question
Probably you haven't defined a data node? Or made a typo in it? – mailq Oct 7 '11 at 22:39
Thanx for your comment. I found the problem. I didn't customize the xml files in conf folder. – AliBZ Oct 7 '11 at 22:55

A couple of years ago I installed Hadoop on my MacbookPro to do testing. It was a bad idea. Took me about five hours to get everything running. It needs the proper Java versions, proper PATH settings, proper HDFS/Hadoop settings and versions.

Since I don't need performance to do testing I switched to using a virtual machine shortly afterwards. There are tons and tons of free VMs just a Google search away, which can be run using free VM players.

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.