i started a project using JHipster and elasticsearch and i don't know how configure my project to connect with distant elk server.
I have a distant elasticsearch on 10.119.19.28:9200, when I enter the address to browser I got this:
{
"name" : "Home",
"cluster_name" : "elasticsearch",
"cluster_uuid" : "groSpqBZRbW9BtTCW3S4Dg",
"version" : {
"number" : "7.1.0",
"build_flavor" : "default",
"build_type" : "tar",
"build_hash" : "606a173",
"build_date" : "2019-05-16T00:43:15.323135Z",
"build_snapshot" : false,
"lucene_version" : "8.0.0",
"minimum_wire_compatibility_version" : "6.8.0",
"minimum_index_compatibility_version" : "6.0.0-beta1"
},
"tagline" : "You Know, for Search"
}
And I have 2 java property in my backend:
data:
elasticsearch:
cluster-name: elasticsearch
cluster-nodes: 10.119.19.28:9200
When I try to run my app I get this error:
java.lang.IllegalStateException: handshake failed with {127.0.0.1:9300}{dx8H800uTceGEL6zDPrGNg}{127.0.0.1}{127.0.0.1:9300}
at org.elasticsearch.transport.TransportService.handshake(TransportService.java:400)
at org.elasticsearch.transport.TransportService.handshake(TransportService.java:367)
at org.elasticsearch.discovery.zen.UnicastZenPing$PingingRound.getOrConnect(UnicastZenPing.java:366)
at org.elasticsearch.discovery.zen.UnicastZenPing$3.doRun(UnicastZenPing.java:471)
at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:723)
at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: org.elasticsearch.transport.NodeDisconnectedException: [][127.0.0.1:9300][internal:transport/handshake] disconnected
How to connect to this elastic 7.1.0 server with my Jhipster backend?