ES升级

1、目标es配置白名单那(重启生效)

reindex.remote.whitelist: "IP:9800"
http.cors.enabled: true
http.cors.allow-origin: "*"

2、迁移
reindex: 请求的是目标es,reindex语法用目标es的

[root@node1 config]# curl -X POST -H "Content-Type: application/json" IP:9801/_reindex  -d '
{
  "source": {
    "remote": {
      "host": "http://IP:9800", 
      "username": "elastic",
      "password": "passwd",
      "socket_timeout": "30m",
      "connect_timeout": "3m"
	},
    "index": "inde1",
    "size": 5000
  },
  "dest": {
    "index": "inde1",
	"op_type": "create"
   }
}'
posted @ 2024-04-29 10:32  MT_IT  阅读(22)  评论(0编辑  收藏  举报