You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Arpit Agarwal (JIRA)" <ji...@apache.org> on 2017/10/03 03:57:00 UTC

[jira] [Commented] (HDFS-11858) JN httpServerUri should be set to hostname when using Default Http Address

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

Arpit Agarwal commented on HDFS-11858:
--------------------------------------

We should probably hold off on making this change. Currently the JN binds the wildcard address by default. By restricting the bind address to a specific hostname we may break some multi-homed deployments that depend on default wildcard bind.

We could re-purpose this jira to document the fact that GetJournalStateResponseProto.fromURL will be incorrect when the JN is using the default http address. Also, I just noticed that the httpPort field in the message is documented as deprecated. You could formalize it with the protobuf {{deprecated}} option ([described here|https://developers.google.com/protocol-buffers/docs/proto#options]).

> JN httpServerUri should be set to hostname when using Default Http Address
> --------------------------------------------------------------------------
>
>                 Key: HDFS-11858
>                 URL: https://issues.apache.org/jira/browse/HDFS-11858
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: hdfs
>            Reporter: Hanisha Koneru
>            Assignee: Hanisha Koneru
>         Attachments: HDFS-11858.001.patch
>
>
> Currently, when JN uses the default http address (0.0.0.0:8480), it sets the httpServerURI to 0.0.0.0:8480 as well. This value is passed as fromUrl address in GetEditLogManifestResponseProto and GetJournalStateResponseProto.
> When using the default http address, we should change the JN's httpServerURI to use the actual hostname.



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