Upgrade Elasticsearch 2.4.0 to 5.6.0

I have the configuration for the 3 masters:

master1

cluster.name: elasticsearch
node.master: true
node.data: false
node.name: "master1"
path.data: /data/data
path.logs: /data/log
bootstrap.memory_lock: true
transport.tcp.port: 9300
http.enabled: false
network.host: 0.0.0.0
gateway.recover_after_nodes: 4
gateway.expected_nodes: 5
discovery.zen.minimum_master_nodes: 2
discovery.zen.ping_timeout: 10s
discovery.zen.ping.unicast.hosts: ["es-master1:9300", "es-master2:9300", "es-master3:9300"]
path.repo: ["/mnt/backup/elasticsearch"]

master2

cluster.name: elasticsearch
node.master: true
node.data: false
node.name: "master2"
path.data: /data/data
path.logs: /data/log
bootstrap.memory_lock: true
transport.tcp.port: 9300
http.enabled: false
network.host: 0.0.0.0
gateway.recover_after_nodes: 4
gateway.expected_nodes: 5
discovery.zen.minimum_master_nodes: 2
discovery.zen.ping_timeout: 10s
discovery.zen.ping.unicast.hosts: ["es-master1:9300", "es-master2:9300", "es-master3:9300"]
path.repo: ["/mnt/backup/elasticsearch"]

master3

cluster.name: elasticsearch
node.master: true
node.data: false
node.name: "master3"
path.data: /data/data
path.logs: /data/log
bootstrap.memory_lock: true
transport.tcp.port: 9300
http.enabled: false
network.host: 0.0.0.0
gateway.recover_after_nodes: 4
gateway.expected_nodes: 5
discovery.zen.minimum_master_nodes: 2
discovery.zen.ping_timeout: 10s
discovery.zen.ping.unicast.hosts: ["es-master1:9300", "es-master2:9300", "es-master3:9300"]
path.repo: ["/mnt/backup/elasticsearch"]

When starting the elasticsearch i have the error:

[2020-02-24T17:05:56,121][INFO ][o.e.n.Node               ] [master2] starting ...
[2020-02-24T17:05:56,377][INFO ][o.e.t.TransportService   ] [master2] publish_address {172.30.0.10:9300}, bound_addresses {[::]:9300}
[2020-02-24T17:05:56,399][INFO ][o.e.b.BootstrapChecks    ] [master2] bound or publishing to a non-loopback address, enforcing bootstrap checks
ERROR: [1] bootstrap checks failed
[1]: memory locking requested for elasticsearch process but memory is not locked
[2020-02-24T17:05:56,471][INFO ][o.e.n.Node               ] [master2] stopping ...
[2020-02-24T17:05:56,509][INFO ][o.e.n.Node               ] [master2] stopped

NOTES:

Can someone help me with this error? Thank you.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.