hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jean-Daniel Cryans (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HBASE-719) Find out why users have network problems in HBase and not in Hadoop
Date Thu, 03 Jul 2008 13:04:45 GMT

    [ https://issues.apache.org/jira/browse/HBASE-719?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12610220#action_12610220
] 

Jean-Daniel Cryans commented on HBASE-719:
------------------------------------------

Found the issue. In Hadoop, when they receive the first call from a Datanode the code is :

{code}
String dnAddress = Server.getRemoteAddress();
    if (dnAddress == null) {
      // Mostly called inside an RPC.
      // But if not, use address passed by the data-node.
      dnAddress = nodeReg.getHost();
    }      

    String hostName = nodeReg.getHost();
      
    // update the datanode's name with ip:port
    DatanodeID dnReg = new DatanodeID(dnAddress + ":" + nodeReg.getPort(),
                                      nodeReg.getStorageID(),
                                      nodeReg.getInfoPort());
{code}
The important line is the first one as it always returns the good address and then the DatanodeID
is updated. I will do exactly the same thing for HBase.

> Find out why users have network problems in HBase and not in Hadoop
> -------------------------------------------------------------------
>
>                 Key: HBASE-719
>                 URL: https://issues.apache.org/jira/browse/HBASE-719
>             Project: Hadoop HBase
>          Issue Type: Improvement
>    Affects Versions: 0.1.3, 0.2.0
>            Reporter: Jean-Daniel Cryans
>            Assignee: Jean-Daniel Cryans
>            Priority: Minor
>
> Many many times, I saw users (including me) who misconfigured their OS network and it
still worked in Hadoop but not in HBase (the region servers report themselves as 127.0.0.1
which is bad). Find out why and correct it if possible.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message