hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brahma Reddy Battula (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-12532) DN Reg can Fail when principal doesn't contain hostname and floatingIP is configured.
Date Wed, 25 Oct 2017 05:21:00 GMT

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

Brahma Reddy Battula commented on HDFS-12532:
---------------------------------------------

bq.I recommend either switching your interface and aliased ips
Looks It's not possible in our environment. It used for another components also.
bq. set dfs.namenode.datanode.registration.ip-hostname-check=false.
This can aviod the ERROR, but it will overide the [folating IP|https://github.com/apache/hadoop/blob/trunk/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/DatanodeManager.java#L1025]
hence clients will get this IP from Namenode but Datanode will listen on another IP?


I feel, when principal having hostname which can't resolvable (i.e bindAddr = null),we can
have one config like below..? This can be configured DualIP machines.

{code}
          if (bindAddr == null) {
            String bindAddrIp = conf.get(
                CommonConfigurationKeysPublic.IPC_CLIENT_CONNECT_LOCAL_BIND_IP_KEY);
            if (bindAddrIp != null && !bindAddrIp.isEmpty()) {
              bindAddr = new InetSocketAddress(bindAddrIp, 0);
            }
          }
          
{code}

> DN Reg can Fail when principal doesn't contain hostname and floatingIP is configured.
> -------------------------------------------------------------------------------------
>
>                 Key: HDFS-12532
>                 URL: https://issues.apache.org/jira/browse/HDFS-12532
>             Project: Hadoop HDFS
>          Issue Type: Bug
>            Reporter: Brahma Reddy Battula
>
> Configure principal without hostname (i.e hdfs/hadoop@HADOOP.com)
> Configure floatingIP
> Start Cluster.
> Here DN will fail to register as it can take IP which is not in "/etc/hosts".



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org


Mime
View raw message