You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "Steve Vaughan (Jira)" <ji...@apache.org> on 2022/07/25 14:31:00 UTC
[jira] [Created] (HDFS-16685) DataNode registration fails because getHostName returns an IP address
Steve Vaughan created HDFS-16685:
------------------------------------
Summary: DataNode registration fails because getHostName returns an IP address
Key: HDFS-16685
URL: https://issues.apache.org/jira/browse/HDFS-16685
Project: Hadoop HDFS
Issue Type: Improvement
Components: namenode
Environment: Run in Kubernetes using Java 11.
Reporter: Steve Vaughan
The call to dnAddress.getHostName() can return an IP address encoded as a string, which is then rejected because unresolved addresses can result in performance impacts due to repetitive DNS lookups later. We can detect when this situation occurs, and perform a DNS reverse name lookup to fix the issue.
Bouncing a DataNode in a managed environment results in a new IP address allocation, and the new instance fails to register with the NameNode.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-dev-help@hadoop.apache.org