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

Suresh Srinivas commented on HDFS-2355:
---------------------------------------

Attached patch does the following:
# If "dfs.federation.nameservice.id" is defined, then that is used as 
nameservice Id.
# If it is not defined, the following addresses are matched to localhost:
#* Namenode matches for all the nameservices defined, 
dfs.namenode.rpc-address.<nsid> to that of the localaddress. When a match is 
found, it picks the corresponding nsid as nameservice id.
#* SecondaryNamenode matches for all the nameservices defined, 
dfs.namenode.secondary.http-address.<nsid> to that of the localaddress. When a 
match is found, it picks the corresponding nsid as nameservice id.
#* BackupNode matches for all the nameservices defined, 
dfs.namenode.backup.address.<nsid> to that of the localaddress. When a match is 
found, it picks the corresponding nsid as nameservice id.


> Federation: enable using the same configuration file across all the nodes in 
> the cluster.
> -----------------------------------------------------------------------------------------
>
>                 Key: HDFS-2355
>                 URL: https://issues.apache.org/jira/browse/HDFS-2355
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>            Reporter: Suresh Srinivas
>            Assignee: Suresh Srinivas
>         Attachments: HDFS-2355.txt
>
>
> In federation the configuration files xml include another configuration xml. 
> This configuration xml is empty for datanodes and defines nameservice ID for 
> namenodes, secondary and backup nodes. The need for xml include can be 
> eliminated by namenodes determining the nameservice ID by matching its local 
> address with a configured address (such as namenode rpc address) and on match 
> using the nameservice ID of the corresponding configuration parameter.
> For more details about federation configuration see 
> https://issues.apache.org/jira/browse/HDFS-1689?focusedCommentId=13001749&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-13001749

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to