Hello @Dominic_Page,
Thanks for your reply!!!
I have done some settings as mentioned by you in my config file i.e. elasticsearch.yml file.
please find below config for the same:
for Master node:
cluster.name: Cluster
node.name: Master-node
node.master: true
node.data: false
network.host: abcd.com
http.port: 9200
transport.tcp.port: 9300
discovery.seed_hosts: ["*.*.*.*:9300", "*.*.*.*:9300"]
cluster.initial_master_nodes: ["Master-node"]
bootstrap.memory_lock: true
for data node:
cluster.name: Cluster
node.name: Data-node1
node.master: false
node.data: true
network.host: abcd.com
discovery.seed_hosts: ["*.*.*.*:9300"]
http.port: 9200
transport.tcp.port:9300
bootstrap.memory_lock: true
I am getting an error while running an elasticsearch service:
Use 'elasticsearch-node re purpose' tool to clean up at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:163) ~[elasticsearch-7.2.0.jar:7.2.0]at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:150) ~[elasticsearch-7.2.0.jar:7.2.0] at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86) ~[elasticsearch-7.2.0.jar:7.2.0] at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124) ~[elasticsearch-cli-7.2.0.jar:7.2.0]at org.elasticsearch.cli.Command.main(Command.java:90) ~[elasticsearch-c li-7.2.0.jar:7.2.0]at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:115 ) ~[elasticsearch-7.2.0.jar:7.2.0]at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:92)~[elasticsearch-7.2.0.jar:7.2.0] Caused by: java.lang.IllegalStateException: Node is started with node.data=false but has shard data: [E:\ES\elasticsearch-7.2.0-windows-x86_64\elasticsearch-7.2.0\data\nodes\0\indices-RMolVw6R6mB9S5pXiVCFg\0, E:\ES\elasticsearch-7.2.0-windows-x86_64\elasticsearch-7.2.0\data\nodes\0\indices\021AEDKOQpWHbgu0mtJnYw\0, E:\ES\elasticsearch-7.2.0-windows-x86_64\elasticsearch-7.2.0\data\nodes\0\indices\0aVGB4-USFCg6R2z9tNv2A\0, E:\ES\elasticsearch-7.2.0-windows-x86_64\elasticsearch-7.2.0\data\nodes\0\indices\6cvvxh3uSruMh_6n1RHeqA\0, E:\ES\elasticsearch-7.2.0-windows-x86_64\elasticsearch-7.2.0\data\nodes\0\indices\8S06taQPQxqlxaM_fC2o3Q\0, E:\ES\elasticsearch-7.2.0-windows-x86_64\elasticsearch-7.2.0\data\nodes\0\indices\AJXnq5aDTg68Klk--3RosQ\0, E:\ES\elasticsearch-7.2.0-windows-x86_64\elasticsearch-7.2.0\data\nodes\0\indices\blRwOmq8RDidmBWTBS3CJA\0, E:\ES\elasticsearch-7.2.0-windows-x86_64\elasticsearch-7.2.0\data\nodes\0\indices\CNiHe7rPQuOFp-KRaypt6Q\0, E:\ES\elasticsearch-7.2.0-windows-x86_64\elasticsearch-7.2.0\data\nodes\0\indices\CqVyVAyGRgykv6dHttOh6Q\0, E:\ES\elasticsearch-7.2.0-windows-x86_64\elasticsearch-7.2.0\data\nodes\0\indices\dHCq7u4IQQyWHWw6-0V0hA\0, E:\ES\elasticsear ch-7.2.0-windows-x86_64\elasticsearch-7.2.0\data\nodes\0\indices\FQNCZjlkT0eejLoJ2YqoJQ\0, E:\ES\elasticsearch-7.2.0-windows-x86_64\elasticsearch-7.2.0\data\nodes\0\indices\FR4iNHI3RxWwMLVOnDYgYQ\0, E:\ES\elasticsearch-7.2.0-windows-x86_64\elasticsearch-7.2.0\data\nodes\0\indices\ghu_VwK3QWiHnFZjO4gG5w\0, E:\ES\elasticsearch-7.2.0-windows-x86_64\elasticsearch-7.2.0\data\nodes\0\indices\HKidfystSN2F5BDEgsCJWA\0, E:\ES\elasticsearch-7.2.0-windows-x86_64\elasticsearch-7.2.0\data \nodes\0\indices\hkIRXWUGQjq8_E4K9nnfgA\0, E:\ES\elasticsearch-7.2.0-windows-x86 _64\elasticsearch-7.2.0\data\nodes\0\indices\Hz6cyMaxTtWuC3tGDykyQg\0, E:\ES\elasticsearch-7.2.0-windows-x86_64\elasticsearch-7.2.0\data\nodes\0\indices\ih7YVGSpTheLyHNdiL0aWg\0, E:\ES\elasticsearch-7.2.0-windows-x86_64\elasticsearch-7.2.0\data\nodes\0\indices\ikzHxg5OQsyA9oo7GVsULg\0, E:\ES\elasticsearch-7.2.0-windows-x86_64\elasticsearch-7.2.0\data\nodes\0\indices\KHoIwNfmRPC2JhsNO4PYIQ\0, E:\ES \elasticsearch-7.2.0-windows-x86_64\elasticsearch-7.2.0\data\nodes\0\indices\L3lUgCM3QfmJM18C6jyYqA\0, E:\ES\elasticsearch-7.2.0-windows-x86_64\elasticsearch-7.2.0\data\nodes\0\indices\LSzTjda0SLGZ0qdpJmYNsQ\0, E:\ES\elasticsearch-7.2.0-windows-x86_64\elasticsearch-7.2.0\data\nodes\0\indices\Mdme-VFNRw2jteLw09J95A\0, E:\ES\elasticsearch-7.2.0-windows-x86_64\elasticsearch-7.2.0\data\nodes\0\indices\mEGqIIvcRQyX7sPn4wBPRw\0, E:\ES\elasticsearch-7.2.0-windows-x86_64\elasticsearch-7.2.0\data\nodes\0\indices\MJYYlMlNSSiud_qza0DgBQ\0, E:\ES\elasticsearch-7.2.0-windows-x86_64\elasticsearch-7.2.0\data\nodes\0\indices\N781S4EFQqia7WCkAh5IuQ\0, E:\ES\elasticsearch-7.2.0-windows-x86_64\elasticsearch-7.2.0\data\nodes\0\indices\o4ZNehjVTb2aJqFmbVjaCQ\0, E:\ES\elasticsearch-7.2.0-windows-x86_64\elasticsearch-7.2.0\data\nodes\0\indices\qkx9YwVRShClcwmbyagqhw\0, E:\ES\elasticsearch-7.2.0-windows-x86_64\elasticsearch-7.2.0\data\nodes\0\indices\sBt8-9g6Q6iJyQF8PsLM8A\0, E:\ES\elasticsearch-7.2.0-windows-x86_64\elasticsearch-7.2.0\data\nodes\0\indices\SOSGCEDwRqGQOV0EEYKwaw\0, E:\ES\elasticsearch-7.2.0-windows-x86_64\elasticsearch-7.2.0\data\nodes\0\indices\xeS1fg8VQTixeGOBuvsLIw\0, E:\ES\elasticsearch-7.2.0-windows-x86_64\elasticsearch-7.2.0\data\nodes\0\indices\xhND5y4_Q6ymi-k Cz0BHsQ\0]. Use 'elasticsearch-node repurpose' tool to clean up at org.elasticsearch.env.NodeEnvironment.ensureNoShardData(NodeEnvironment.java:1065) ~[elasticsearch-7.2.0.jar:7.2.0]at org.elasticsearch.env.NodeEnvironment.(NodeEnvironment.java:324 ) ~[elasticsearch-7.2.0.jar:7.2.0] at org.elasticsearch.node.Node.(Node.java:271) ~[elasticsearch-7.2.0.jar:7.2.0] at org.elasticsearch.node.Node.(Node.java:251) ~[elasticsearch-7.2.0.jar:7.2.0]at org.elasticsearch.bootstrap.Bootstrap$5.(Bootstrap.java:221) ~[elasticsearch-7.2.0.jar:7.2.0] at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:221) ~[elasticsearch-7.2.0.jar:7.2.0]at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:349) ~[elasticsearch-7.2.0.jar:7.2.0]at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:159 ) ~[elasticsearch-7.2.0.jar:7.2.0]> ... 6 more
Kindly guide me on the same.
Regards,
Priyanka