title: Unwanted secondary namenode on my hadoop cluster
body: <p>I'm learning <code>Hadoop-2.9.2</code> especially on namenode HA.</p>
  
  <p>At the first time of cluster setting, I put <code>dfs.namenode.secondary.http-address</code> into <code>hdfs-site.xml</code> and it works properly.</p>
  
  <p>After reading <a href="https://hadoop.apache.org/docs/current/hadoop-project-dist/hadoop-hdfs/HDFSHighAvailabilityWithQJM.html" rel="nofollow noreferrer">this</a>, I found out there is no need of secondary namenode under hadoop HA.</p>
  
  <blockquote>
    <p>Note that, in an HA cluster, the Standby NameNode also performs
    checkpoints of the namespace state, and thus it is not necessary to
    run a Secondary NameNode, CheckpointNode, or BackupNode in an HA
    cluster. In fact, to do so would be an error. This also allows one who
    is reconfiguring a non-HA-enabled HDFS cluster to be HA-enabled to
    reuse the hardware which they had previously dedicated to the
    Secondary NameNode.</p>
  </blockquote>
  
  <p>finally, I removed <code>dfs.namenode.secondary.http-address</code> from hdfs.site.xml and restarted the cluster but <code>secondarynamenode</code> on <code>0.0.0.0</code> is still there.</p>
  
  <p>here is my hdfs-site.xml below.</p>
  
  <pre><code>&lt;configuration&gt;
      &lt;property&gt;
              &lt;name&gt;dfs.namenode.name.dir&lt;/name&gt;
              &lt;value&gt;/home/hadoop/data/nameNode&lt;/value&gt;
  
              &lt;name&gt;dfs.datanode.data.dir&lt;/name&gt;
              &lt;value&gt;/home/hadoop/data/datanode&lt;/value&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><code>hdfs</code> command shows me the same like below.</p>
  
  <pre><code>$ hdfs getconf -secondarynamenodes
  18/12/21 00:35:43 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
  0.0.0.0
  </code></pre>
  
  <p>I ensure that all config files are synchronized across all nodes.</p>
  
  <p>According to my understanding, I need to get gid of <code>secondarynamenode</code> before getting into HA setting.</p>
  
  <p>If I'm not wrong, How can I handle with this?</p>
  
  <p>I do know that I can do <code>hadoop-daemon.sh stop secondarynamenode</code> but I don't want it to start at <code>start-dfs.sh</code>.</p>