Skip to content
Advertisement

Caused by: java.net.ConnectException: Connection refused: no further information: localhost/127.0.0.1:9300

I am developing a project from the link http://www.mkyong.com/spring-boot/spring-boot-spring-data-elasticsearch-example/ without any custom change yet.

My concerns is how we can run this project ? Do I need to install anything ?

JavaScript

pom.xml

JavaScript

Advertisement

Answer

It is pretty clear that you have missed some or all of the steps in section 5.1 of the example that you are following. The last of them says that you must start the ElasticSearch instance. The evidence is that you haven’t done this (successfully). The instance would be listing for connections on port 9300, It isn’t, and that causes the OS to “refuse” the connection attempt by your client.

Prerequisite means that you must do them first.

Solution: follow the instructions.

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement