title: HA is not enabled for this namenode when using "hdfs zkfc -formatZK"
body: <p>I am establishing a single node hadoop cluster using zookeeper
  my zookeeper cluster has three nodes which on the same machine with different ports.they are working fine.
  my hadoop cluster has only one node.my hadoop and zookeepers are on the same machine.when using "hdfs zkfc -formatZK" they tells me:Exception in thread "main" org.apache.Hadoop.HadoopIllegalArgumentException: HA is not enabled for this namenode</p>
  
  <p>my core-site.xml:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;configuration&gt;
   &lt;property&gt;    
        &lt;name&gt;fs.defaultFS&lt;/name&gt;    
        &lt;value&gt;hdfs://yavin&lt;/value&gt;    
   &lt;/property&gt;
   &lt;property&gt;
        &lt;name&gt;hadoop.tmp.dir&lt;/name&gt;
        &lt;value&gt;/usr/local/hadoop/hdfs/temp&lt;/value&gt;
   &lt;/property&gt;                             
   &lt;property&gt;    
        &lt;name&gt;io.file.buffer.size&lt;/name&gt;    
        &lt;value&gt;4096&lt;/value&gt;    
   &lt;/property&gt;
   &lt;property&gt;
        &lt;name&gt;ha.zookeeper.quorum&lt;/name&gt;
        &lt;value&gt;coruscant:2181,coruscant:2182,coruscant:2183&lt;/value&gt;
   &lt;/property&gt;
   &lt;/configuration&gt;
  </code></pre>
  
  <p>coruscant is mapping my ip address in hosts file. all my zookeepers are on coruscant using port 2181 2182 2183</p>
  
  <p>my hdfs-site.xml:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;configuration&gt;   
      &lt;property&gt;    
          &lt;name&gt;dfs.nameservices&lt;/name&gt;    
          &lt;value&gt;yavin&lt;/value&gt;    
      &lt;/property&gt;  
      &lt;property&gt;
         &lt;name&gt;dfs.ha.namenodes.yavin&lt;/name&gt;
         &lt;value&gt;nn1&lt;/value&gt;
      &lt;/property&gt;
      &lt;property&gt;
         &lt;name&gt;dfs.namenode.rpc-address.yavin.nn1&lt;/name&gt;
         &lt;value&gt;coruscant:9000&lt;/value&gt;
      &lt;/property&gt;
      &lt;property&gt;
          &lt;name&gt;dfs.namenode.http-address.yavin.nn1&lt;/name&gt;
          &lt;value&gt;coruscant:50070&lt;/value&gt;
      &lt;/property&gt;
      &lt;property&gt;
          &lt;name&gt;dfs.namenode.servicerpc-address.yavin.nn1&lt;/name&gt;
          &lt;value&gt;coruscant:53310&lt;/value&gt;
      &lt;/property&gt;
      &lt;property&gt;
           &lt;name&gt;dfs.namenode.shared.edits.dir&lt;/name&gt;
           &lt;value&gt;qjournal://coruscant:8485;coruscant:8486;coruscant:8487/yavin&lt;/value&gt;
      &lt;/property&gt;
      &lt;property&gt;
            &lt;name&gt;dfs.journalnode.edits.dir&lt;/name&gt;
            &lt;value&gt;/usr/local/hadoop/journal&lt;/value&gt;
      &lt;/property&gt;
      &lt;property&gt;
            &lt;name&gt;dfs.ha.automatic-failover.enabled&lt;/name&gt;
            &lt;value&gt;true&lt;/value&gt;
      &lt;/property&gt;
      &lt;property&gt;
              &lt;name&gt;dfs.client.failover.proxy.provider.yavin&lt;/name&gt;
              &lt;value&gt;org.apache.hadoop.hdfs.server.namenode.ha.ConfiguredFailoverProxyProvider&lt;/value&gt;
      &lt;/property&gt;
      &lt;property&gt;
               &lt;name&gt;dfs.ha.fencing.methods&lt;/name&gt;
               &lt;value&gt;sshfence&lt;/value&gt;
      &lt;/property&gt;
      &lt;property&gt;
              &lt;name&gt;dfs.ha.fencing.ssh.private-key-files&lt;/name&gt;
              &lt;value&gt;/root/.ssh/id_rsa&lt;/value&gt;
      &lt;/property&gt;                              
      &lt;property&gt;    
          &lt;name&gt;dfs.namenode.name.dir&lt;/name&gt;    
          &lt;value&gt;file:///usr/local/hadoop/hdfs/name&lt;/value&gt;    
      &lt;/property&gt;    
      &lt;property&gt;    
          &lt;name&gt;dfs.datanode.data.dir&lt;/name&gt;    
          &lt;value&gt;file:///usr/local/hadoop/hdfs/data&lt;/value&gt;    
      &lt;/property&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.webhdfs.enabled&lt;/name&gt;    
         &lt;value&gt;true&lt;/value&gt;    
      &lt;/property&gt;    
  &lt;property&gt;
          &lt;name&gt;dfs.permissions.enable&lt;/name&gt;
          &lt;value&gt;false&lt;/value&gt;
      &lt;/property&gt;
      &lt;property&gt;
          &lt;name&gt;dfs.permissions&lt;/name&gt;
          &lt;value&gt;false&lt;/value&gt;
      &lt;/property&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>my mapred-site.xml:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;configuration&gt;
   &lt;property&gt;    
          &lt;name&gt;mapreduce.framework.name&lt;/name&gt;    
          &lt;value&gt;yarn&lt;/value&gt;    
   &lt;/property&gt;    
  &lt;/configuration&gt;
  </code></pre>
  
  <p>my yarn-site.xml:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;configuration&gt;
      &lt;property&gt;
             &lt;name&gt;yarn.resourcemanager.ha.enabled&lt;/name&gt;
             &lt;value&gt;true&lt;/value&gt;
      &lt;/property&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.resourcemanager.hostname&lt;/name&gt;
              &lt;value&gt;coruscant&lt;/value&gt;
        &lt;/property&gt; 
  &lt;/configuration&gt;
  </code></pre>
  
  <p>what have I done wrong?</p>