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

Mike Drob commented on SOLR-7458:
---------------------------------

Did some digging with HDFS folks and it looks like BlockLocation::host is 
generally a hostname (and not an ip, with caveat that your cluster is 
configured reasonably). The general solution to determining a hostname for a 
machine is very difficult, since any given server could have multiple 
interfaces with multiple names for each alias, etc. We probably just have to 
rely on some well known one that we can get, and not spend too much effort 
worrying about if "localhost" is good enough.

Well look at SolrXmlConfig. Will add in ConcurrentHashMap.

> Expose HDFS Block Locality Metrics
> ----------------------------------
>
>                 Key: SOLR-7458
>                 URL: https://issues.apache.org/jira/browse/SOLR-7458
>             Project: Solr
>          Issue Type: Improvement
>          Components: SolrCloud
>            Reporter: Mike Drob
>            Assignee: Mark Miller
>              Labels: metrics
>         Attachments: SOLR-7458.patch, SOLR-7458.patch
>
>
> We should publish block locality metrics when using HDFS.



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

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

Reply via email to