Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
01-09-2020 04:16 AM
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?
01-13-2020 07:10 AM
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" ?
01-13-2020 07:29 AM
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.
01-13-2020 07:35 AM
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.
All the sessions of the conference are now available online