Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Springboot-Elasticsearch connection #2

Open
akhil-ramakrish opened this issue Jul 23, 2019 · 0 comments
Open

Springboot-Elasticsearch connection #2

akhil-ramakrish opened this issue Jul 23, 2019 · 0 comments

Comments

@akhil-ramakrish
Copy link

Hi I'am trying to connect to elasticsearch through springboot.But when I run my application I'am getting following exception.

. ____ _ __ _ _
/\ / ' __ _ () __ __ _ \ \ \
( ( )_
_ | '_ | '| | ' / ` | \ \ \
\/ )| |)| | | | | || (| | ) ) ) )
' |
| .__|| ||| |_, | / / / /
=========|
|==============|/=////
:: Spring Boot :: (v1.5.1.RELEASE)

2019-07-23 10:49:55.110 INFO 16328 --- [ main] c.e.elasticsearch.ElasticApplication : Starting ElasticApplication on W3GLap13 with PID 16328 (C:\Users\Akhil\Desktop\spring-boot-elasticsearch-master\target\classes started by Akhil in C:\Users\Akhil\Desktop\spring-boot-elasticsearch-master)
2019-07-23 10:49:55.114 INFO 16328 --- [ main] c.e.elasticsearch.ElasticApplication : No active profile set, falling back to default profiles: default
2019-07-23 10:49:55.189 INFO 16328 --- [ main] ationConfigEmbeddedWebApplicationContext : Refreshing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@32a068d1: startup date [Tue Jul 23 10:49:55 IST 2019]; root of context hierarchy
2019-07-23 10:49:56.315 INFO 16328 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.boot.autoconfigure.validation.ValidationAutoConfiguration' of type [class org.springframework.boot.autoconfigure.validation.ValidationAutoConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2019-07-23 10:49:56.390 INFO 16328 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'validator' of type [class org.springframework.validation.beanvalidation.LocalValidatorFactoryBean] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2019-07-23 10:49:56.939 INFO 16328 --- [ main] s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat initialized with port(s): 8102 (http)
2019-07-23 10:49:56.955 INFO 16328 --- [ main] o.apache.catalina.core.StandardService : Starting service Tomcat
2019-07-23 10:49:56.956 INFO 16328 --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet Engine: Apache Tomcat/8.5.11
2019-07-23 10:49:57.095 INFO 16328 --- [ost-startStop-1] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2019-07-23 10:49:57.095 INFO 16328 --- [ost-startStop-1] o.s.web.context.ContextLoader : Root WebApplicationContext: initialization completed in 1910 ms
2019-07-23 10:49:57.240 INFO 16328 --- [ost-startStop-1] o.s.b.w.servlet.ServletRegistrationBean : Mapping servlet: 'dispatcherServlet' to [/]
2019-07-23 10:49:57.246 INFO 16328 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'characterEncodingFilter' to: [/]
2019-07-23 10:49:57.247 INFO 16328 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'hiddenHttpMethodFilter' to: [/
]
2019-07-23 10:49:57.247 INFO 16328 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'httpPutFormContentFilter' to: [/]
2019-07-23 10:49:57.247 INFO 16328 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'requestContextFilter' to: [/
]
2019-07-23 10:49:57.650 INFO 16328 --- [ main] org.elasticsearch.plugins : [Gigantus] modules [], plugins [], sites []
2019-07-23 10:49:58.258 INFO 16328 --- [ main] o.s.d.e.c.TransportClientFactoryBean : adding transport node : localhost:9200
2019-07-23 10:50:03.450 INFO 16328 --- [ main] org.elasticsearch.client.transport : [Gigantus] failed to get node info for {#transport#-1}{localhost}{127.0.0.1:9200}, disconnecting...

org.elasticsearch.transport.ReceiveTimeoutTransportException: [][127.0.0.1:9200][cluster:monitor/nodes/liveness] request_id [0] timed out after [5002ms]
at org.elasticsearch.transport.TransportService$TimeoutHandler.run(TransportService.java:698) ~[elasticsearch-2.4.6.jar:2.4.6]
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) ~[na:1.8.0_221]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) ~[na:1.8.0_221]
at java.lang.Thread.run(Unknown Source) ~[na:1.8.0_221]

2019-07-23 10:50:03.646 ERROR 16328 --- [ 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:9200}]
2019-07-23 10:50:03.922 INFO 16328 --- [ main] s.w.s.m.m.a.RequestMappingHandlerAdapter : Looking for @ControllerAdvice: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@32a068d1: startup date [Tue Jul 23 10:49:55 IST 2019]; root of context hierarchy
2019-07-23 10:50:04.004 INFO 16328 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/id/{userId}]}" onto public com.example.elasticsearch.model.User com.example.elasticsearch.controller.UserController.getUser(java.lang.String)
2019-07-23 10:50:04.005 INFO 16328 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/new],methods=[POST]}" onto public com.example.elasticsearch.model.User com.example.elasticsearch.controller.UserController.addNewUsers(com.example.elasticsearch.model.User)
2019-07-23 10:50:04.006 INFO 16328 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/settings/{name}/{key}],methods=[GET]}" onto public java.lang.String com.example.elasticsearch.controller.UserController.getUserSetting(java.lang.String,java.lang.String)
2019-07-23 10:50:04.006 INFO 16328 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/all]}" onto public java.util.List<com.example.elasticsearch.model.User> com.example.elasticsearch.controller.UserController.getAllUsers()
2019-07-23 10:50:04.006 INFO 16328 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/settings/{name}/{key}/{value}],methods=[GET]}" onto public java.lang.String com.example.elasticsearch.controller.UserController.addUserSetting(java.lang.String,java.lang.String,java.lang.String)
2019-07-23 10:50:04.006 INFO 16328 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/settings/{name}],methods=[GET]}" onto public java.lang.Object com.example.elasticsearch.controller.UserController.getAllUserSettings(java.lang.String)
2019-07-23 10:50:04.009 INFO 16328 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/repo/id/{userId}]}" onto public com.example.elasticsearch.model.User com.example.elasticsearch.controller.UserRepositoryController.getUser(java.lang.String)
2019-07-23 10:50:04.010 INFO 16328 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/repo/new],methods=[POST]}" onto public com.example.elasticsearch.model.User com.example.elasticsearch.controller.UserRepositoryController.addNewUsers(com.example.elasticsearch.model.User)
2019-07-23 10:50:04.011 INFO 16328 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/repo/settings/{userId}/{key}],methods=[GET]}" onto public java.lang.String com.example.elasticsearch.controller.UserRepositoryController.getUserSetting(java.lang.String,java.lang.String)
2019-07-23 10:50:04.011 INFO 16328 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/repo/all]}" onto public java.util.List<com.example.elasticsearch.model.User> com.example.elasticsearch.controller.UserRepositoryController.getAllUsers()
2019-07-23 10:50:04.013 INFO 16328 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/repo/settings/{userId}/{key}/{value}],methods=[GET]}" onto public java.lang.String com.example.elasticsearch.controller.UserRepositoryController.addUserSetting(java.lang.String,java.lang.String,java.lang.String)
2019-07-23 10:50:04.015 INFO 16328 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/repo/settings/{userId}],methods=[GET]}" onto public java.lang.Object com.example.elasticsearch.controller.UserRepositoryController.getAllUserSettings(java.lang.String)
2019-07-23 10:50:04.019 INFO 16328 --- [ 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-07-23 10:50:04.020 INFO 16328 --- [ 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-07-23 10:50:04.064 INFO 16328 --- [ main] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path [/webjars/] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2019-07-23 10:50:04.064 INFO 16328 --- [ main] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path [/
] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2019-07-23 10:50:04.163 INFO 16328 --- [ main] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path [/**/favicon.ico] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2019-07-23 10:50:04.384 INFO 16328 --- [ main] o.s.j.e.a.AnnotationMBeanExporter : Registering beans for JMX exposure on startup
2019-07-23 10:50:04.445 INFO 16328 --- [ main] s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat started on port(s): 8102 (http)
2019-07-23 10:50:04.452 INFO 16328 --- [ main] c.e.elasticsearch.ElasticApplication : Started ElasticApplication in 9.693 seconds (JVM running for 10.131)
2019-07-23 10:50:08.459 INFO 16328 --- [][generic][T#1]] org.elasticsearch.client.transport : [Gigantus] failed to get node info for {#transport#-1}{localhost}{127.0.0.1:9200}, disconnecting...

org.elasticsearch.transport.ReceiveTimeoutTransportException: [][127.0.0.1:9200][cluster:monitor/nodes/liveness] request_id [1] timed out after [5003ms]
at org.elasticsearch.transport.TransportService$TimeoutHandler.run(TransportService.java:698) ~[elasticsearch-2.4.6.jar:2.4.6]
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [na:1.8.0_221]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [na:1.8.0_221]
at java.lang.Thread.run(Unknown Source) [na:1.8.0_221]

2019-07-23 10:50:18.470 INFO 16328 --- [][generic][T#1]] org.elasticsearch.client.transport : [Gigantus] failed to get node info for {#transport#-1}{localhost}{127.0.0.1:9200}, disconnecting...

org.elasticsearch.transport.ReceiveTimeoutTransportException: [][127.0.0.1:9200][cluster:monitor/nodes/liveness] request_id [2] timed out after [5001ms]
at org.elasticsearch.transport.TransportService$TimeoutHandler.run(TransportService.java:698) ~[elasticsearch-2.4.6.jar:2.4.6]
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [na:1.8.0_221]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [na:1.8.0_221]
at java.lang.Thread.run(Unknown Source) [na:1.8.0_221]

I would really appreciate some help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant