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

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

So I might be able to do something like

{code}
    String solrHome = SolrResourceLoader.locateSolrHome();
    ConfigSolr cfg = ConfigSolr.fromSolrHome(new SolrResourceLoader(solrHome), 
solrHome);
    String host = cfg.getHost();
{code}

But that feels incredibly fragile. Will continue to look for alternative 
solutions.

> 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