title: Hadoop 2.7.3: Incorrect configuration: namenode address dfs.namenode.servicerpc-address or dfs.namenode.rpc-address is not configured
body: <p>I have three machines centOS 7 where I want to deploy hadoop 2.7.3.</p>
  
  <p>I got the following error:</p>
  
  <pre><code>[root@hadoop-master hadoop]# sbin/start-dfs.sh
  Incorrect configuration: namenode address dfs.namenode.servicerpc-address or dfs.namenode.rpc-address is not configured.
  Starting namenodes on []
  cat: /opt/hadoop/hadoop/slaves: No file ou folder found
  sed: -e expression n°1, caracter 6: option unknown pour `s'
  Starting secondary namenodes [0.0.0.0]
  </code></pre>
  
  <p>I checked many website but it didn't not solve my problem. Does anyone have an idea ?</p>
  
  <p>For information, here are my mxl files:</p>
  
  <p><strong>Core-site.xml for master and slave</strong></p>
  
  <pre><code>&lt;configuration&gt;
    &lt;property&gt;
        &lt;name&gt;fs.default.name&lt;/name&gt;
        &lt;value&gt;hdfs://hadoop-master:9000/&lt;/value&gt;
    &lt;/property&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p><strong>hdfs-site.xml for master</strong></p>
  
  <pre><code>&lt;configuration&gt;
      &lt;property&gt;
          &lt;name&gt;dfs.replication&lt;/name&gt;
          &lt;value&gt;2&lt;/value&gt;
      &lt;/property&gt;
      &lt;property&gt;
          &lt;name&gt;dfs.namenode.name.dir&lt;/name&gt;
          &lt;value&gt;file:/opt/hadoop/hadoop/hdfs/namenode&lt;/value&gt;
      &lt;/property&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p><strong>hdfs-site.xml for slave</strong></p>
  
  <pre><code>&lt;configuration&gt;
      &lt;property&gt;
          &lt;name&gt;dfs.replication&lt;/name&gt;
          &lt;value&gt;2&lt;/value&gt;
      &lt;/property&gt;
      &lt;property&gt;
          &lt;name&gt;dfs.datanode.data.dir&lt;/name&gt;
          &lt;value&gt;file:/opt/hadoop/hadoop/hdfs/datanode&lt;/value&gt;
      &lt;/property&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p><strong>yarn-site.xml</strong></p>
  
  <pre><code>&lt;configuration&gt;
      &lt;property&gt;
          &lt;name&gt;yarn.nodemanager.aux-services&lt;/name&gt;
          &lt;value&gt;mapreduce_shuffle&lt;/value&gt;
      &lt;/property&gt;
      &lt;property&gt;
          &lt;name&gt;yarn.nodemanager.aux-services.mapreduce.shuffle.class&lt;/name&gt;
          &lt;value&gt;org.apache.hadoop.mapred.ShuffleHandler&lt;/value&gt;
      &lt;/property&gt;
      &lt;property&gt;
          &lt;name&gt;yarn.resourcemanager.resource.tracker.address&lt;/name&gt;
          &lt;value&gt;hadoop-master:8025&lt;/value&gt;
      &lt;/property&gt;
      &lt;property&gt;
          &lt;name&gt;yarn.resourcemanager.scheduler.address&lt;/name&gt;
          &lt;value&gt;hadoop-master:8030&lt;/value&gt;
      &lt;/property&gt;
      &lt;property&gt;
          &lt;name&gt;yarn.resourcemanager.address&lt;/name&gt;
          &lt;value&gt;hadoop-master:8050&lt;/value&gt;
      &lt;/property&gt;
  &lt;/configuration&gt;
  </code></pre>