cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

Cannot get Elasticsearch data into Neo4j instance

MuddyBootsCode
Graph Steward

I'm working with Elasticsearch and Neo4j, I'm currently attempting to get the instances to simply talk to each other. I'm using the command:

call apoc.es.stats("localhost:9205")

to connect to the locally exposed Elasticsearch index. This is the error message I receive back:

Failed to invoke procedure `apoc.es.stats`: 
Caused by: java.lang.RuntimeException: 
Can't read url or key http://localhost:9205/_stats as json: 
Connection refused: connect

The ES index is accessible on local host without a password and returns a json response to curl and other queries. Has anyone else run into this issue?

4 REPLIES 4

Hi @MuddyBootsCode,
You sure that port 9205 is correct? Check available ports and his conf.

Does it work when you run curl -X GET "localhost:9200/_stats" ?

MuddyBootsCode
Graph Steward

Thanks for getting back to me. Yep, I've tried it on both ports, the ES index inside a docker instance that's exposed on 9205, but I've attempted on 9200 as well. Thank you.

MuddyBootsCode
Graph Steward

Ok. So the issue was, I was connected to a remote instance of Neo4j, instead of my local environment, because attention to detail was not happening that day.

No problem @MuddyBootsCode, best whishes in next step of your project.