2017-01-10 46 views
2

當我用localhost作爲IP地址,它的工作如預期elasticdump:康恩ECT ECONNREFUSED MY_IP:轉儲錯誤(獲取階段)=>錯誤結束PORT

C:\Users\Lenovo>elasticdump --input=http://localhost:9200/wellnessservices --out 
put=http://192.168.2.87:9200/wellnessservices --type=mapping 
Tue, 10 Jan 2017 09:56:47 GMT | starting dump 
Tue, 10 Jan 2017 09:56:47 GMT | got 1 objects from source elasticsearch (offset: 
0) 
Tue, 10 Jan 2017 09:56:47 GMT | sent 1 objects to destination elasticsearch, wro 
te 1 
Tue, 10 Jan 2017 09:56:47 GMT | got 0 objects from source elasticsearch (offset: 
1) 
Tue, 10 Jan 2017 09:56:47 GMT | Total Writes: 1 
Tue, 10 Jan 2017 09:56:47 GMT | dump complete 

但是當我指定的IP地址對於相同的本地主機,然後我得到如下所示的錯誤

C:\Users\Lenovo>elasticdump --input=http://192.168.2.83:9200/wellnessservices -- 
output=http://192.168.2.87:9200/wellnessservices --type=mapping 
Tue, 10 Jan 2017 10:02:51 GMT | starting dump 
Tue, 10 Jan 2017 10:02:52 GMT | Error Emitted => connect ECONNREFUSED 192.168.2. 
83:9200 
Tue, 10 Jan 2017 10:02:52 GMT | Total Writes: 0 
Tue, 10 Jan 2017 10:02:52 GMT | dump ended with error (get phase) => Error: conn 
ect ECONNREFUSED 192.168.2.83:9200 

回答

0

我有同樣的問題。它不應該是套接字的問題,因爲我在命令中添加了--maxSockets = 5。

Fri, 20 Jan 2017 20:32:53 GMT | Error Emitted => connect ECONNREFUSED <IP> 
Fri, 20 Jan 2017 20:32:53 GMT | Total Writes: 166700 
Fri, 20 Jan 2017 20:32:53 GMT | dump ended with error (set phase) => Error: connect ECONNREFUSED <IP>