[ 
https://issues.apache.org/jira/browse/HDFS-8700?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Walter Su updated HDFS-8700:
----------------------------
    Resolution: Invalid
        Status: Resolved  (was: Patch Available)

> favoredNodes should accept ip addr
> ----------------------------------
>
>                 Key: HDFS-8700
>                 URL: https://issues.apache.org/jira/browse/HDFS-8700
>             Project: Hadoop HDFS
>          Issue Type: Bug
>            Reporter: Walter Su
>            Assignee: Walter Su
>            Priority: Minor
>         Attachments: HDFS-8700.01.patch
>
>
> NameNode accepts two forms of FavoredNodes, {{ip:port}} and {{host:port}}
> DFSClient#create(..) only uses {{host:port}}, if favoredNodes is created by 
> {code}
> new InetSocketAddress(ip, port)
> {code}
> DFSClient will attempt a reverse lookup locally to get {{host:port}}, instead 
> of sending {{ip:port}} directly to NameNode.
> It's not a problem in production. But it's a problem in MiniDFSCluster.
> MiniDFSCluster use fake hostname "host1.foo.com" to start DataNodes.
> DFSClient doesn't use StaticMapping. So if DFSClient do reverse lookup, 
> "127.0.0.1:50470" becomes "localhost:50470".



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

Reply via email to