I am trying to re-index from 6.7 to 7.3.
root@elk730 ~ $curl -X POST "localhost:9200/_reindex?pretty" -H 'Content-Type: application/json' -d'
{
"source": {
"remote": {
"host": "http://10.10.10.60:9200"
},
"index": "reindexed-v630-test"
},
"dest": {
"index": "v730-test"
}
}'
{
"error" : {
"root_cause" : [
{
"type" : "connect_exception",
"reason" : "Connection refused"
}
],
"type" : "connect_exception",
"reason" : "Connection refused"
},
"status" : 500
}
From elasticsearch.log,
[2019-10-21T12:35:25,535][WARN ][r.suppressed ] [elk730node1] path: /_reindex, params: {pretty=}
java.net.ConnectException: Connection refused
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) ~[?:?]
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:779) ~[?:?]
at org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor.processEvent(DefaultConnectingIOReactor.java:171) ~[?:?]
at org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor.processEvents(DefaultConnectingIOReactor.java:145) ~[?:?]
at org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor.execute(AbstractMultiworkerIOReactor.java:351) ~[?:?]
at org.apache.http.impl.nio.conn.PoolingNHttpClientConnectionManager.execute(PoolingNHttpClientConnectionManager.java:221) ~[?:?]
at org.apache.http.impl.nio.client.CloseableHttpAsyncClientBase$1.run(CloseableHttpAsyncClientBase.java:64) ~[?:?]
at java.lang.Thread.run(Thread.java:835) [?:?]
elasticsearch.yml has this setting already.
reindex.remote.whitelist: "10.10.10.60:9200"