title: Hadoop: Incorrect configuration
body: <p>Hi stackoverflow community, 
  so I've been wanting to install hadoop, but I have come to a problem. 
  I've looked at other approaches, but I still keep receiving. I am completely new to hadoop, so I don't really know where to go. I am on a macbook pro with El Capitan if relevant. Once I make sbin/start-dfs.sh I receive this: </p>
  
  <pre><code>sbin/start-dfs.sh
  16/05/10 11:09:37 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
  Incorrect configuration: namenode address dfs.namenode.servicerpc-address or dfs.namenode.rpc-address is not configured.
  Starting namenodes on []
  Password:
  localhost: /usr/local/Cellar/hadoop/2.7.2/libexec/sbin/hadoop-daemon.sh: line 69: [: MacBook: integer expression expected
  localhost: starting namenode, logging to /usr/local/Cellar/hadoop/2.7.2/libexec/logs/hadoop-name-namenode-name’s
  localhost: Error: Could not find or load main class MacBook
  </code></pre>
  
  <p>The hadoop-daemon.sh is: </p>
  
  <p><a href="https://i.stack.imgur.com/oWsQR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/oWsQR.png" alt="enter image description here"></a></p>
  
  <p>The relevant XMLs are as follow: </p>
  
  <p>core-site.xml</p>
  
  <pre><code>&lt;configuration&gt;
      &lt;property&gt;
          &lt;name&gt;fs.defaultFS&lt;/name&gt;
          &lt;value&gt;hdfs://localhost:9000&lt;/value&gt;
      &lt;/property&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>hdfs-site.xml</p>
  
  <pre><code>&lt;configuration&gt;
      &lt;property&gt;
          &lt;name&gt;dfs.replication&lt;/name&gt;
          &lt;value&gt;1&lt;/value&gt;
      &lt;/property&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>If anything is wanted I will freely provide. Thank you for all the help and I truly appreciate it, since I really want to start using Hadoop. </p>
  
  <pre><code>export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home
  export HADOOP_PREFIX=/usr/local/Cellar/hadoop
  </code></pre>
  
  <p>Hey so this is an update if anyone is considered: I now get this</p>
  
  <pre><code>WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
  Starting namenodes on [myIP@]
  </code></pre>
  
  <p>New note: I am redoing the process with and refollowing this guide. Whether or not success is mine, I will post my update here :)!</p>
  
  <pre><code>zhongyaonan.com/hadoop-tutorial/…
  </code></pre>