java.net.ConnectException: Connection refused: no further information
at org.elasticsearch.client.RestClient.extractAndWrapCause(RestClient.java:804)
at org.elasticsearch.client.RestClient.performRequest(RestClient.java:225)
at org.elasticsearch.client.RestClient.performRequest(RestClient.java:228)
at org.elasticsearch.client.RestClient.performRequest(RestClient.java:228)
at org.elasticsearch.client.RestClient.performRequest(RestClient.java:228)
at org.elasticsearch.client.RestClient.performRequest(RestClient.java:212)
at org.elasticsearch.client.RestHighLevelClient.internalPerformRequest(RestHighLevelClient.java:1448)
at org.elasticsearch.client.RestHighLevelClient.performRequest(RestHighLevelClient.java:1418)
at org.elasticsearch.client.RestHighLevelClient.performRequestAndParseEntity(RestHighLevelClient.java:1388)
at org.elasticsearch.client.RestHighLevelClient.search(RestHighLevelClient.java:930)
at com.asiainfo.day1.RestHighLevelClientHelper.searchIndex(RestHighLevelClientHelper.java:315)
at com.asiainfo.day1.RestHighLevelClientHelper.searchIndex(RestHighLevelClientHelper.java:207)
at com.asiainfo.day1.RestHighLevelClientHelper.main(RestHighLevelClientHelper.java:369)
Suppressed: java.net.ConnectException: Connection refused: no further information
at org.elasticsearch.client.RestClient.extractAndWrapCause(RestClient.java:804)
at org.elasticsearch.client.RestClient.performRequest(RestClient.java:225)
... 10 more
Suppressed: java.net.ConnectException: Timeout connecting to [/1xxxxxxx6.25:23000]
at org.elasticsearch.client.RestClient.extractAndWrapCause(RestClient.java:804)
at org.elasticsearch.client.RestClient.performRequest(RestClient.java:225)
... 9 more
如图,断点显示是RestHighLevelClient.search()后报的错误,希望各位大神帮忙给点建议
3 个回复
bellengao - 博客: https://www.jianshu.com/u/e0088e3e2127
赞同来自:
God_lockin
赞同来自:
个人感觉多半是防火墙/开放端口/黑白名单的问题
sky_ - 程序猿
赞同来自: