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

Íñigo Goiri commented on HDFS-14079:
------------------------------------

{quote}
Existing logic is depend on nameservice Id. If we want to reuse it, we have to 
define nsid for router in one property and RouterAdmin will use it to get the 
admin address list.
{quote}
We should just refactor the DFSUtil part to extract this, I think it's there 
and it's just a matter of changing visibility.

{quote}
@ProtocolInfo(protocolName = HdfsConstants.CLIENT_NAMENODE_PROTOCOL_NAME, Not 
sure whether this intened.Íñigo Goiri can you confirm same.Even this can be 
done in seperate jira.
{quote}
This was originally a copy of what the NN did.
We may want to revisit this setting.
BTW, we need to take care of the Kerberos setting here (we should do this as 
part of the security umbrella).

{quote}
IMO, Instead of exposing config for admin address(which needs additional 
validation),RouterStateManager has admin address like below.SO we can use that?
{quote}
This is interesting as it would go in the direction of HADOOP-15774 where we 
use the repos to discover instead of configuration files.
This might be a good point to start.

> RBF: RouterAdmin should have failover concept for router
> --------------------------------------------------------
>
>                 Key: HDFS-14079
>                 URL: https://issues.apache.org/jira/browse/HDFS-14079
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>    Affects Versions: 3.1.1
>            Reporter: Surendra Singh Lilhore
>            Assignee: Surendra Singh Lilhore
>            Priority: Major
>         Attachments: HDFS-14079-HDFS-13891.01.patch, 
> HDFS-14079-HDFS-13891.02.patch
>
>
> Currenlty {{RouterAdmin}} connect with only one router for admin operation, 
> if the configured router is down then router admin command is failing. It 
> should allow to configure all the router admin address.
> {code}
>     // Initialize RouterClient
>     try {
>       String address = getConf().getTrimmed(
>           RBFConfigKeys.DFS_ROUTER_ADMIN_ADDRESS_KEY,
>           RBFConfigKeys.DFS_ROUTER_ADMIN_ADDRESS_DEFAULT);
>       InetSocketAddress routerSocket = NetUtils.createSocketAddr(address);
>       client = new RouterClient(routerSocket, getConf());
>     } catch (RPC.VersionMismatch v) {
>       System.err.println(
>           "Version mismatch between client and server... command aborted");
>       return exitCode;
>     }
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to