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

Robert Muir commented on SOLR-4088:
-----------------------------------

I hit this when running tests:

{noformat}
[junit4:junit4]    > Caused by: java.net.UnknownHostException: xxx.yyy.zzz: 
xxx.yyy.zzz: nodename nor servname provided, or not known
[junit4:junit4]    >    at 
java.net.InetAddress.getLocalHost(InetAddress.java:1438)
[junit4:junit4]    >    at 
org.apache.solr.cloud.ZkController.getHostAddress(ZkController.java:375)
[junit4:junit4]    >    at 
org.apache.solr.cloud.ZkController.<init>(ZkController.java:157)
[junit4:junit4]    >    at 
org.apache.solr.core.CoreContainer.initZooKeeper(CoreContainer.java:254)
[junit4:junit4]    >    ... 44 more
{noformat}

                
> ZkController baseURL only get the host name not address, will occur can't get 
> the right URL to do recovery.   
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: SOLR-4088
>                 URL: https://issues.apache.org/jira/browse/SOLR-4088
>             Project: Solr
>          Issue Type: Bug
>          Components: SolrCloud
>    Affects Versions: 4.0-ALPHA, 4.0-BETA, 4.0
>         Environment: Linux env
>            Reporter: Raintung Li
>            Assignee: Mark Miller
>             Fix For: 4.1, 5.0
>
>         Attachments: patch-4088.txt
>
>
> In the ZKController.getHostAddress, it gets host name. In the linux, get 
> hostname from /etc/sysconfig/network or /etc/hostname that maybe not config 
> for ip address.
>  
> Other server can't access it(http://hostname:port/..) correctly that cause 
> recovery fail.
>  

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

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

Reply via email to