[ 
https://issues.apache.org/jira/browse/HDFS-1623?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14604495#comment-14604495
 ] 

Jian Fang commented on HDFS-1623:
---------------------------------

Sorry for commenting on the resolved JIRA. I tried to run command

hdfs dfsadmin -refreshNamenodes datanode-host:port

to refresh name nodes on data nodes after I replaced one name node with a new 
one so that I don't need to restart the data nodes. However, I got the 
following error:

refreshNamenodes: HA does not currently support adding a new standby to a 
running DN. Please do a rolling restart of DNs to reconfigure the list of NNs.

I checked the 2.6.0 code and the error was thrown by the following code 
snippet, which led me to this JIRA.

  void refreshNNList(ArrayList<InetSocketAddress> addrs) throws IOException {
    Set<InetSocketAddress> oldAddrs = Sets.newHashSet();
    for (BPServiceActor actor : bpServices) {
      oldAddrs.add(actor.getNNSocketAddress());
    }
    Set<InetSocketAddress> newAddrs = Sets.newHashSet(addrs);
    
    if (!Sets.symmetricDifference(oldAddrs, newAddrs).isEmpty()) {
      // Keep things simple for now -- we can implement this at a later date.
      throw new IOException(
          "HA does not currently support adding a new standby to a running DN. 
" +
          "Please do a rolling restart of DNs to reconfigure the list of NNs.");
    }
  }

Looks like this JIRA should not be closed and there are some uncompleted work 
here. Is there any other JIRA to track this issue and how could I workaround 
this problem? 

Thanks in advance.


> High Availability Framework for HDFS NN
> ---------------------------------------
>
>                 Key: HDFS-1623
>                 URL: https://issues.apache.org/jira/browse/HDFS-1623
>             Project: Hadoop HDFS
>          Issue Type: New Feature
>            Reporter: Sanjay Radia
>             Fix For: 2.0.0-alpha
>
>         Attachments: HA-tests.pdf, HDFS-1623.rel23.patch, 
> HDFS-1623.trunk.patch, HDFS-High-Availability.pdf, NameNode HA_v2.pdf, 
> NameNode HA_v2_1.pdf, Namenode HA Framework.pdf, dfsio-results.tsv, 
> ha-testplan.pdf, ha-testplan.tex
>
>




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to