Hi.
I hope you can help me or that someone has the experience already passed.
It happens that I want to start working my mongo data in elastic, so I'm doing a process that synchronizes mongo with elastic, For that I am using transporter, which I have installed it and I already created the transport named pipeline.js which has the following configuration:
"var source = mongodb({
"uri": "mongodb://user:password@IP:27017/prueba"
})
var sink = elasticsearch({
"uri": "IP:9200/test"
})
t.Source("source", source, "/./").Save("sink", sink, "/. /")"
I Run ./transporter-0.5.2-linux-amd64 run pipeline.js and the following error appears:
"panic: connection error, http:// [recovered]
panic: Panic at 32: connection error, http:// [recovered]
panic: Panic at 32: connection error, http://"
I have mongo and elestic on different machines, but on the same network.
I have elastic with security disabled (xpack.security.enabled: false)
Thank you. Regards!
Rodrigo
Hi.
Thanks for your answer. I answer below:
1.- Check if ES is accessible from the host running transporter.
curl http://<ElasticSearch Node IP>:9200
answer; If I arrive. Respons the following.
"{
"name" : "Host.localdomain",
"cluster_name" : "test",
"cluster_uuid" : "BxO2hjTlRw-u-8fKJui_DQ",
"version" : {
"number" : "7.7.0",
"build_flavor" : "default",
"build_type" : "rpm",
"build_hash" : "81a1e9eda8e6183f5237786246f6dced26a10eaf",
"build_date" : "2020-05-12T02:01:37.602180Z",
"build_snapshot" : false,
"lucene_version" : "8.5.1",
"minimum_wire_compatibility_version" : "6.8.0",
"minimum_index_compatibility_version" : "6.0.0-beta1"
},
"tagline" : "You Know, for Search"
"
2.- Try changing elasticsearch uri in sink to include protocol. http://:9200/test.
answer; I included http protocol in Sink, but I have the same problem. It does not fix the error.
If you have any other information about what may be causing the problem, I would appreciate it.
At the same time I am evaluating some other way to synchronize
Greetings and thanks
Rodrigo
system
(system)
Closed
July 19, 2020, 2:15am
4
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.