Walter Su created HDFS-8700:
-------------------------------

             Summary: 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


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