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

Jeffrey E  Rodriguez commented on HDFS-11502:
---------------------------------------------

Only concern we may have :
Hostname in JVMMetrics uses InetAddress.getLocalHost().getHostName() which may 
resolve in some cases to localhost or 127.0.0.0.  
   At this point I don't know of a better datanode jmx  beab  property or 
method that would reflect the real datanode hostname (FQDN) so we can 
differentiate datanodes if there are going through a proxy. (the previous way 
would showed the proxy hostname instead because window.location.hostname). In 
addition JS window.location may not be a portable way to provide that 
information either.

So to community, would like to ask if there is a reliable way available to 
datanode JMX beans to show FQDN or hostname of datanode.


> dn.js set datanode UI to window.location.hostname, it should use jmx bean 
> property to setup hostname
> ----------------------------------------------------------------------------------------------------
>
>                 Key: HDFS-11502
>                 URL: https://issues.apache.org/jira/browse/HDFS-11502
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: hdfs
>    Affects Versions: 2.7.2, 2.7.3
>         Environment: all
>            Reporter: Jeffrey E  Rodriguez
>            Assignee: Jeffrey E  Rodriguez
>             Fix For: 2.8.0, 2.7.3, 3.0.0-alpha1, 3.0.0-alpha2
>
>         Attachments: HDFS-11502.001.patch, HDFS-11502.002.patch
>
>
> Datanode UI calls "dn.js" which loads properties for datanode.  "dn.js" sets 
> "data.dn.HostName" datanode UI to "window.location.hostname", it should use a 
> datanode property from jmx beans or an appropriate property. The issue is
> that if we use a proxy to access datanode UI we would show proxy hostanme 
> instead of actual datanode hostname.
> I am proposing using Hadoop:service=DataNode,name=JvmMetrics" tag.Hostname 
> field to do that.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to