Eureka error "java.net.UnknownHostException: c1438e0d5866
2017-10-24 18:04
459 查看
转载请注明出处 http://www.paraller.com
原文排版地址 点击获取更好阅读体验
Eureka error "java.net.UnknownHostException: c1438e0d5866"
Eureka的客户端无法识别哈希值的主机服务程序,需要指定IP来作为识别码。
```
eureka:
instance:
preferIpAddress: true
client:
serviceUrl:
defaultZone: http://${serverA}:9761/eureka/,http://${serverA}:9762/eureka/,http://${serverA}:9763/eureka/ registerWithEureka: true
fetchRegistry: true
```
原文排版地址 点击获取更好阅读体验
Eureka error "java.net.UnknownHostException: c1438e0d5866"
原因
Eureka的客户端无法识别哈希值的主机服务程序,需要指定IP来作为识别码。
方案
在配置文件中增加以下配置:```
eureka:
instance:
preferIpAddress: true
client:
serviceUrl:
defaultZone: http://${serverA}:9761/eureka/,http://${serverA}:9762/eureka/,http://${serverA}:9763/eureka/ registerWithEureka: true
fetchRegistry: true
```
相关文章推荐
- 2016-02-01-Eureka error "java.net.UnknownHostException: c1438e0d5866.md
- android java.net.UnknownHostException: Unable to resolve host "...": No address associated 错误
- java.net.UnknownHostException: Unable to resolve host "api1.51zhenghao.cn": No address associated wi
- Error injecting constructor, java.net.UnknownHostException: *****
- mac 上运行cassandra出现的java.net.MalformedURLException: Local host name unknown: java.net.UnknownHostException: : : unknown error错误解决方法
- java.net.UnknownHostException: Unable to resolve host "api102.meishi.cc": No address associated with hostname
- android java.net.UnknownHostException: Unable to resolve host "...": No address associated 错误
- xom报错 Exception in thread "main" java.net.UnknownHostException: file
- Spring Cloud (1) | java.net.UnknownHostException: eureka-server
- android java.net.UnknownHostException: Unable to resolve host "...": No address associated 错误
- ERROR security.UserGroupInformation: PriviledgedActionException as:hadoop cause:java.net.UnknownHostException: hadoop: hadoop
- Error: Exception thrown by the agent : java.net.MalformedURLException: Local host name unknown: java.net.UnknownHostException: hx2: hx2: unknown error
- java.net.UnknownHostException: Unable to resolve host "xxx": No address associated with hostname
- 解决android上java.net.UnknownHostException: Unable to resolve host "xxxx": No address associated wit
- Caused by: java.net.UnknownHostException: eureka-server
- java.net.UnknownHostException: Unable to resolve host "stats.umsns.com": No address associated with
- android java.net.UnknownHostException: Unable to resolve host "...": No address associated 错误
- java.net.UnknownHostException: Unable to resolve host "api1.51zhenghao.cn": No address associated w
- android java.net.UnknownHostException: Unable to resolve host "...": No address associated
- SHUTDOWN_MSG: Shutting down NameNode at java.net.UnknownHostException: datanode:unknown error解决办法