老师,我在elasticsearch-ini-action项目中运行测试用例时,出现错误
来源:7-5 -Elasticsearch 实-文档、资源库、测试用例
qq_慕码人5167370
2019-03-28
org.elasticsearch.transport.NodeDisconnectedException: [][127.0.0.1:9300][cluster:monitor/nodes/liveness] disconnected 2019-03-28 11:38:19.292 ERROR 5680 — [ main] .d.e.r.s.AbstractElasticsearchRepository : failed to load elasticsearch nodes : org.elasticsearch.client.transport.NoNodeAvailableException: None of the configured nodes are available: [{#transport#-1}{localhost}{127.0.0.1:9300}] 2019-03-28 11:38:19.810 INFO 5680 — [ main] s.w.s.m.m.a.RequestMappingHandlerAdapter : Looking for @ControllerAdvice: org.springframework.web.context.support.GenericWebApplicationContext@6a03bcb1: startup date [Thu Mar 28 11:38:00 CST 2019]; root of context hierarchy 2019-03-28 11:38:20.203 INFO 5680 — [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped “{[/error]}” onto public org.springframework.http.ResponseEntity<java.util.Map<java.lang.String, java.lang.Object>> org.springframework.boot.autoconfigure.web.BasicErrorController.error(javax.servlet.http.HttpServletRequest) 2019-03-28 11:38:20.216 INFO 5680 — [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped “{[/error],produces=[text/html]}” onto public org.springframework.web.servlet.ModelAndView org.springframework.boot.autoconfigure.web.BasicErrorController.errorHtml(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse) 2019-03-28 11:38:20.397 INFO 5680 — [ main] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path [/webjars/] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler] 2019-03-28 11:38:20.399 INFO 5680 — [ main] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path [/] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler] 2019-03-28 11:38:20.600 INFO 5680 — [ main] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path [/**/favicon.ico] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler] 2019-03-28 11:38:21.467 INFO 5680 — [ main] c.z.e.r.es.EsBlogRepositoryTest : Started EsBlogRepositoryTest in 22.053 seconds (JVM running for 25.565) 2019-03-28 11:38:21.554 INFO 5680 — [][generic][T#2]] org.elasticsearch.client.transport : [Kristoff von Doom] failed to get node info for {#transport#-1}{localhost}{127.0.0.1:9300}, disconnecting… org.elasticsearch.transport.NodeDisconnectedException: [][127.0.0.1:9300][cluster:monitor/nodes/liveness] disconnected 2019-03-28 11:38:22.307 INFO 5680 — [ Thread-2] o.s.w.c.s.GenericWebApplicationContext : Closing org.springframework.web.context.support.GenericWebApplicationContext@6a03bcb1: startup date [Thu Mar 28 11:38:00 CST 2019]; root of context hierarchy 2019-03-28 11:38:22.663 INFO 5680 — [ Thread-2] s.b.a.d.e.ElasticsearchAutoConfiguration : Closing Elasticsearch client
写回答
1回答
-
老卫
2019-03-28
ES 服务器启动了吗?
看下是否是版本不一致引起的? https://www.imooc.com/article/38975022019-03-29
基于Spring Boot技术栈博客系统企业级前后端实战
毕设 Elasticsearch搜索+Thymeleaf模板+JPA+Security+BootStrap
1296 学习 · 738 问题
相似问题