I am trying to setup Elasticsearch version 7.10.2 using the official docker image.
I only need a single-node cluster and I have successfully managed to set it up locally in the container. This is the output from health check on localhost:
{
"cluster_name" : "anders-cluster",
"status" : "green",
"timed_out" : false,
"number_of_nodes" : 1,
"number_of_data_nodes" : 1,
"active_primary_shards" : 0,
"active_shards" : 0,
"relocating_shards" : 0,
"initializing_shards" : 0,
"unassigned_shards" : 0,
"delayed_unassigned_shards" : 0,
"number_of_pending_tasks" : 0,
"number_of_in_flight_fetch" : 0,
"task_max_waiting_in_queue_millis" : 0,
"active_shards_percent_as_number" : 100.0
}
Now I need it to run on a PaaS where the underlying platform is Kubernetes and that part is abstracted away from me. When I run a container with the same configuration as I do locally, it will just fail and I get the following logs:
{"type": "server", "timestamp": "2023-06-01T11:49:08,373Z", "level": "INFO", "component": "o.e.n.Node", "cluster.name": "anders-cluster", "node.name": "elasticsearch-6f7d46fdbb-pdn72", "message": "version[7.10.2], pid[7], build[default/docker/747e1cc71def077253878a59143c1f785afa92b9/2021-01-13T00:42:12.435326Z], OS[Linux/5.4.0-1089-azure/amd64], JVM[AdoptOpenJDK/OpenJDK 64-Bit Server VM/15.0.1/15.0.1+9]" }
{"type": "server", "timestamp": "2023-06-01T11:49:08,375Z", "level": "INFO", "component": "o.e.n.Node", "cluster.name": "anders-cluster", "node.name": "elasticsearch-6f7d46fdbb-pdn72", "message": "JVM home [/usr/share/elasticsearch/jdk], using bundled JDK [true]" }
{"type": "server", "timestamp": "2023-06-01T11:49:08,376Z", "level": "INFO", "component": "o.e.n.Node", "cluster.name": "anders-cluster", "node.name": "elasticsearch-6f7d46fdbb-pdn72", "message": "JVM arguments [-Xshare:auto, -Des.networkaddress.cache.ttl=60, -Des.networkaddress.cache.negative.ttl=10, -XX:+AlwaysPreTouch, -Xss1m, -Djava.awt.headless=true, -Dfile.encoding=UTF-8, -Djna.nosys=true, -XX:-OmitStackTraceInFastThrow, -XX:+ShowCodeDetailsInExceptionMessages, -Dio.netty.noUnsafe=true, -Dio.netty.noKeySetOptimization=true, -Dio.netty.recycler.maxCapacityPerThread=0, -Dio.netty.allocator.numDirectArenas=0, -Dlog4j.shutdownHookEnabled=false, -Dlog4j2.disable.jmx=true, -Djava.locale.providers=SPI,COMPAT, -Xms1g, -Xmx1g, -XX:+UseG1GC, -XX:G1ReservePercent=25, -XX:InitiatingHeapOccupancyPercent=30, -Djava.io.tmpdir=/tmp/elasticsearch-442206083555627847, -XX:+HeapDumpOnOutOfMemoryError, -XX:HeapDumpPath=data, -XX:ErrorFile=logs/hs_err_pid%p.log, -Xlog:gc*,gc+age=trace,safepoint:file=logs/gc.log:utctime,pid,tags:filecount=32,filesize=64m, -Des.cgroups.hierarchy.override=/, -XX:MaxDirectMemorySize=536870912, -Des.path.home=/usr/share/elasticsearch, -Des.path.conf=/usr/share/elasticsearch/config, -Des.distribution.flavor=default, -Des.distribution.type=docker, -Des.bundled_jdk=true]" }
{"type": "server", "timestamp": "2023-06-01T11:49:09,975Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "anders-cluster", "node.name": "elasticsearch-6f7d46fdbb-pdn72", "message": "loaded module [aggs-matrix-stats]" }
{"type": "server", "timestamp": "2023-06-01T11:49:09,977Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "anders-cluster", "node.name": "elasticsearch-6f7d46fdbb-pdn72", "message": "loaded module [analysis-common]" }
{"type": "server", "timestamp": "2023-06-01T11:49:09,977Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "anders-cluster", "node.name": "elasticsearch-6f7d46fdbb-pdn72", "message": "loaded module [constant-keyword]" }
{"type": "server", "timestamp": "2023-06-01T11:49:09,977Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "anders-cluster", "node.name": "elasticsearch-6f7d46fdbb-pdn72", "message": "loaded module [flattened]" }
{"type": "server", "timestamp": "2023-06-01T11:49:09,977Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "anders-cluster", "node.name": "elasticsearch-6f7d46fdbb-pdn72", "message": "loaded module [frozen-indices]" }
{"type": "server", "timestamp": "2023-06-01T11:49:09,977Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "anders-cluster", "node.name": "elasticsearch-6f7d46fdbb-pdn72", "message": "loaded module [ingest-common]" }
{"type": "server", "timestamp": "2023-06-01T11:49:09,977Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "anders-cluster", "node.name": "elasticsearch-6f7d46fdbb-pdn72", "message": "loaded module [ingest-geoip]" }
{"type": "server", "timestamp": "2023-06-01T11:49:09,978Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "anders-cluster", "node.name": "elasticsearch-6f7d46fdbb-pdn72", "message": "loaded module [ingest-user-agent]" }
{"type": "server", "timestamp": "2023-06-01T11:49:09,978Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "anders-cluster", "node.name": "elasticsearch-6f7d46fdbb-pdn72", "message": "loaded module [kibana]" }
{"type": "server", "timestamp": "2023-06-01T11:49:09,978Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "anders-cluster", "node.name": "elasticsearch-6f7d46fdbb-pdn72", "message": "loaded module [lang-expression]" }
{"type": "server", "timestamp": "2023-06-01T11:49:09,978Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "anders-cluster", "node.name": "elasticsearch-6f7d46fdbb-pdn72", "message": "loaded module [lang-mustache]" }
{"type": "server", "timestamp": "2023-06-01T11:49:09,978Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "anders-cluster", "node.name": "elasticsearch-6f7d46fdbb-pdn72", "message": "loaded module [lang-painless]" }
{"type": "server", "timestamp": "2023-06-01T11:49:09,978Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "anders-cluster", "node.name": "elasticsearch-6f7d46fdbb-pdn72", "message": "loaded module [mapper-extras]" }
{"type": "server", "timestamp": "2023-06-01T11:49:09,979Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "anders-cluster", "node.name": "elasticsearch-6f7d46fdbb-pdn72", "message": "loaded module [mapper-version]" }
{"type": "server", "timestamp": "2023-06-01T11:49:09,979Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "anders-cluster", "node.name": "elasticsearch-6f7d46fdbb-pdn72", "message": "loaded module [parent-join]" }
{"type": "server", "timestamp": "2023-06-01T11:49:09,979Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "anders-cluster", "node.name": "elasticsearch-6f7d46fdbb-pdn72", "message": "loaded module [percolator]" }
{"type": "server", "timestamp": "2023-06-01T11:49:09,979Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "anders-cluster", "node.name": "elasticsearch-6f7d46fdbb-pdn72", "message": "loaded module [rank-eval]" }
{"type": "server", "timestamp": "2023-06-01T11:49:09,979Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "anders-cluster", "node.name": "elasticsearch-6f7d46fdbb-pdn72", "message": "loaded module [reindex]" }
{"type": "server", "timestamp": "2023-06-01T11:49:09,979Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "anders-cluster", "node.name": "elasticsearch-6f7d46fdbb-pdn72", "message": "loaded module [repositories-metering-api]" }
{"type": "server", "timestamp": "2023-06-01T11:49:09,979Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "anders-cluster", "node.name": "elasticsearch-6f7d46fdbb-pdn72", "message": "loaded module [repository-url]" }
{"type": "server", "timestamp": "2023-06-01T11:49:09,980Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "anders-cluster", "node.name": "elasticsearch-6f7d46fdbb-pdn72", "message": "loaded module [search-business-rules]" }
{"type": "server", "timestamp": "2023-06-01T11:49:09,980Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "anders-cluster", "node.name": "elasticsearch-6f7d46fdbb-pdn72", "message": "loaded module [searchable-snapshots]" }
{"type": "server", "timestamp": "2023-06-01T11:49:09,980Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "anders-cluster", "node.name": "elasticsearch-6f7d46fdbb-pdn72", "message": "loaded module [spatial]" }
{"type": "server", "timestamp": "2023-06-01T11:49:09,980Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "anders-cluster", "node.name": "elasticsearch-6f7d46fdbb-pdn72", "message": "loaded module [transform]" }
{"type": "server", "timestamp": "2023-06-01T11:49:09,980Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "anders-cluster", "node.name": "elasticsearch-6f7d46fdbb-pdn72", "message": "loaded module [transport-netty4]" }
{"type": "server", "timestamp": "2023-06-01T11:49:09,981Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "anders-cluster", "node.name": "elasticsearch-6f7d46fdbb-pdn72", "message": "loaded module [unsigned-long]" }
{"type": "server", "timestamp": "2023-06-01T11:49:09,981Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "anders-cluster", "node.name": "elasticsearch-6f7d46fdbb-pdn72", "message": "loaded module [vectors]" }
{"type": "server", "timestamp": "2023-06-01T11:49:09,981Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "anders-cluster", "node.name": "elasticsearch-6f7d46fdbb-pdn72", "message": "loaded module [wildcard]" }
{"type": "server", "timestamp": "2023-06-01T11:49:09,981Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "anders-cluster", "node.name": "elasticsearch-6f7d46fdbb-pdn72", "message": "loaded module [x-pack-analytics]" }
{"type": "server", "timestamp": "2023-06-01T11:49:09,981Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "anders-cluster", "node.name": "elasticsearch-6f7d46fdbb-pdn72", "message": "loaded module [x-pack-async]" }
{"type": "server", "timestamp": "2023-06-01T11:49:09,981Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "anders-cluster", "node.name": "elasticsearch-6f7d46fdbb-pdn72", "message": "loaded module [x-pack-async-search]" }
{"type": "server", "timestamp": "2023-06-01T11:49:09,981Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "anders-cluster", "node.name": "elasticsearch-6f7d46fdbb-pdn72", "message": "loaded module [x-pack-autoscaling]" }
{"type": "server", "timestamp": "2023-06-01T11:49:09,982Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "anders-cluster", "node.name": "elasticsearch-6f7d46fdbb-pdn72", "message": "loaded module [x-pack-ccr]" }
{"type": "server", "timestamp": "2023-06-01T11:49:09,982Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "anders-cluster", "node.name": "elasticsearch-6f7d46fdbb-pdn72", "message": "loaded module [x-pack-core]" }
{"type": "server", "timestamp": "2023-06-01T11:49:09,982Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "anders-cluster", "node.name": "elasticsearch-6f7d46fdbb-pdn72", "message": "loaded module [x-pack-data-streams]" }
{"type": "server", "timestamp": "2023-06-01T11:49:09,982Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "anders-cluster", "node.name": "elasticsearch-6f7d46fdbb-pdn72", "message": "loaded module [x-pack-deprecation]" }
{"type": "server", "timestamp": "2023-06-01T11:49:09,982Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "anders-cluster", "node.name": "elasticsearch-6f7d46fdbb-pdn72", "message": "loaded module [x-pack-enrich]" }
{"type": "server", "timestamp": "2023-06-01T11:49:09,982Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "anders-cluster", "node.name": "elasticsearch-6f7d46fdbb-pdn72", "message": "loaded module [x-pack-eql]" }
{"type": "server", "timestamp": "2023-06-01T11:49:09,982Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "anders-cluster", "node.name": "elasticsearch-6f7d46fdbb-pdn72", "message": "loaded module [x-pack-graph]" }
{"type": "server", "timestamp": "2023-06-01T11:49:09,982Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "anders-cluster", "node.name": "elasticsearch-6f7d46fdbb-pdn72", "message": "loaded module [x-pack-identity-provider]" }
{"type": "server", "timestamp": "2023-06-01T11:49:09,983Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "anders-cluster", "node.name": "elasticsearch-6f7d46fdbb-pdn72", "message": "loaded module [x-pack-ilm]" }
{"type": "server", "timestamp": "2023-06-01T11:49:09,983Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "anders-cluster", "node.name": "elasticsearch-6f7d46fdbb-pdn72", "message": "loaded module [x-pack-logstash]" }
{"type": "server", "timestamp": "2023-06-01T11:49:09,983Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "anders-cluster", "node.name": "elasticsearch-6f7d46fdbb-pdn72", "message": "loaded module [x-pack-ml]" }
{"type": "server", "timestamp": "2023-06-01T11:49:09,983Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "anders-cluster", "node.name": "elasticsearch-6f7d46fdbb-pdn72", "message": "loaded module [x-pack-monitoring]" }
{"type": "server", "timestamp": "2023-06-01T11:49:09,983Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "anders-cluster", "node.name": "elasticsearch-6f7d46fdbb-pdn72", "message": "loaded module [x-pack-ql]" }
{"type": "server", "timestamp": "2023-06-01T11:49:09,983Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "anders-cluster", "node.name": "elasticsearch-6f7d46fdbb-pdn72", "message": "loaded module [x-pack-rollup]" }
{"type": "server", "timestamp": "2023-06-01T11:49:09,983Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "anders-cluster", "node.name": "elasticsearch-6f7d46fdbb-pdn72", "message": "loaded module [x-pack-security]" }
{"type": "server", "timestamp": "2023-06-01T11:49:09,984Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "anders-cluster", "node.name": "elasticsearch-6f7d46fdbb-pdn72", "message": "loaded module [x-pack-sql]" }
{"type": "server", "timestamp": "2023-06-01T11:49:09,984Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "anders-cluster", "node.name": "elasticsearch-6f7d46fdbb-pdn72", "message": "loaded module [x-pack-stack]" }
{"type": "server", "timestamp": "2023-06-01T11:49:09,984Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "anders-cluster", "node.name": "elasticsearch-6f7d46fdbb-pdn72", "message": "loaded module [x-pack-voting-only-node]" }
{"type": "server", "timestamp": "2023-06-01T11:49:09,984Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "anders-cluster", "node.name": "elasticsearch-6f7d46fdbb-pdn72", "message": "loaded module [x-pack-watcher]" }
{"type": "server", "timestamp": "2023-06-01T11:49:09,984Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "anders-cluster", "node.name": "elasticsearch-6f7d46fdbb-pdn72", "message": "no plugins loaded" }
{"type": "server", "timestamp": "2023-06-01T11:49:10,266Z", "level": "INFO", "component": "o.e.e.NodeEnvironment", "cluster.name": "anders-cluster", "node.name": "elasticsearch-6f7d46fdbb-pdn72", "message": "using [1] data paths, mounts [[/usr/share/elasticsearch/data/nodes/0 (blobfuse)]], net usable_space [952.5gb], net total_space [992.2gb], types [fuse]" }
{"type": "server", "timestamp": "2023-06-01T11:49:10,266Z", "level": "INFO", "component": "o.e.e.NodeEnvironment", "cluster.name": "anders-cluster", "node.name": "elasticsearch-6f7d46fdbb-pdn72", "message": "heap size [1gb], compressed ordinary object pointers [true]" }
{"type": "server", "timestamp": "2023-06-01T11:49:14,118Z", "level": "ERROR", "component": "o.e.b.ElasticsearchUncaughtExceptionHandler", "cluster.name": "anders-cluster", "node.name": "elasticsearch-6f7d46fdbb-pdn72", "message": "uncaught exception in thread [main]",
"stacktrace": ["org.elasticsearch.bootstrap.StartupException: java.lang.IllegalArgumentException: indexCreatedVersionMajor is in the future: 9",
"at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:174) ~[elasticsearch-7.10.2.jar:7.10.2]",
"at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:161) ~[elasticsearch-7.10.2.jar:7.10.2]",
"at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86) ~[elasticsearch-7.10.2.jar:7.10.2]",
"at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:127) ~[elasticsearch-cli-7.10.2.jar:7.10.2]",
"at org.elasticsearch.cli.Command.main(Command.java:90) ~[elasticsearch-cli-7.10.2.jar:7.10.2]",
"at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:126) ~[elasticsearch-7.10.2.jar:7.10.2]",
uncaught exception in thread [main]
"at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:92) ~[elasticsearch-7.10.2.jar:7.10.2]",
"Caused by: java.lang.IllegalArgumentException: indexCreatedVersionMajor is in the future: 9",
"at org.apache.lucene.index.SegmentInfos.<init>(SegmentInfos.java:169) ~[lucene-core-8.7.0.jar:8.7.0 2dc63e901c60cda27ef3b744bc554f1481b3b067 - atrisharma - 2020-10-29 19:35:28]",
"at org.apache.lucene.index.SegmentInfos.readCommit(SegmentInfos.java:327) ~[lucene-core-8.7.0.jar:8.7.0 2dc63e901c60cda27ef3b744bc554f1481b3b067 - atrisharma - 2020-10-29 19:35:28]",
"at org.apache.lucene.index.SegmentInfos.readCommit(SegmentInfos.java:291) ~[lucene-core-8.7.0.jar:8.7.0 2dc63e901c60cda27ef3b744bc554f1481b3b067 - atrisharma - 2020-10-29 19:35:28]",
"at org.apache.lucene.index.StandardDirectoryReader$1.doBody(StandardDirectoryReader.java:61) ~[lucene-core-8.7.0.jar:8.7.0 2dc63e901c60cda27ef3b744bc554f1481b3b067 - atrisharma - 2020-10-29 19:35:28]",
"at org.apache.lucene.index.StandardDirectoryReader$1.doBody(StandardDirectoryReader.java:58) ~[lucene-core-8.7.0.jar:8.7.0 2dc63e901c60cda27ef3b744bc554f1481b3b067 - atrisharma - 2020-10-29 19:35:28]",
"at org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:720) ~[lucene-core-8.7.0.jar:8.7.0 2dc63e901c60cda27ef3b744bc554f1481b3b067 - atrisharma - 2020-10-29 19:35:28]",
"at org.apache.lucene.index.StandardDirectoryReader.open(StandardDirectoryReader.java:81) ~[lucene-core-8.7.0.jar:8.7.0 2dc63e901c60cda27ef3b744bc554f1481b3b067 - atrisharma - 2020-10-29 19:35:28]",
"at org.apache.lucene.index.DirectoryReader.open(DirectoryReader.java:63) ~[lucene-core-8.7.0.jar:8.7.0 2dc63e901c60cda27ef3b744bc554f1481b3b067 - atrisharma - 2020-10-29 19:35:28]",
"at org.elasticsearch.gateway.PersistedClusterStateService.nodeMetadata(PersistedClusterStateService.java:267) ~[elasticsearch-7.10.2.jar:7.10.2]",
"at org.elasticsearch.env.NodeEnvironment.loadNodeMetadata(NodeEnvironment.java:409) ~[elasticsearch-7.10.2.jar:7.10.2]",
"at org.elasticsearch.env.NodeEnvironment.<init>(NodeEnvironment.java:330) ~[elasticsearch-7.10.2.jar:7.10.2]",
"at org.elasticsearch.node.Node.<init>(Node.java:362) ~[elasticsearch-7.10.2.jar:7.10.2]",
"at org.elasticsearch.node.Node.<init>(Node.java:289) ~[elasticsearch-7.10.2.jar:7.10.2]",
"at org.elasticsearch.bootstrap.Bootstrap$5.<init>(Bootstrap.java:227) ~[elasticsearch-7.10.2.jar:7.10.2]",
"at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:227) ~[elasticsearch-7.10.2.jar:7.10.2]",
"at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:393) ~[elasticsearch-7.10.2.jar:7.10.2]",
"at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:170) ~[elasticsearch-7.10.2.jar:7.10.2]",
"... 6 more",
"Suppressed: org.apache.lucene.index.CorruptIndexException: checksum passed (36aa7e30). possibly transient resource issue, or a Lucene or JVM bug (resource=BufferedChecksumIndexInput(SimpleFSIndexInput(path=\"/usr/share/elasticsearch/data/nodes/0/_state/segments_1e6\")))",
"\tat org.apache.lucene.codecs.CodecUtil.checkFooter(CodecUtil.java:466) ~[lucene-core-8.7.0.jar:8.7.0 2dc63e901c60cda27ef3b744bc554f1481b3b067 - atrisharma - 2020-10-29 19:35:28]",
"\tat org.apache.lucene.index.SegmentInfos.readCommit(SegmentInfos.java:434) ~[lucene-core-8.7.0.jar:8.7.0 2dc63e901c60cda27ef3b744bc554f1481b3b067 - atrisharma - 2020-10-29 19:35:28]",
"\tat org.apache.lucene.index.SegmentInfos.readCommit(SegmentInfos.java:291) ~[lucene-core-8.7.0.jar:8.7.0 2dc63e901c60cda27ef3b744bc554f1481b3b067 - atrisharma - 2020-10-29 19:35:28]",
"\tat org.apache.lucene.index.StandardDirectoryReader$1.doBody(StandardDirectoryReader.java:61) ~[lucene-core-8.7.0.jar:8.7.0 2dc63e901c60cda27ef3b744bc554f1481b3b067 - atrisharma - 2020-10-29 19:35:28]",
"\tat org.apache.lucene.index.StandardDirectoryReader$1.doBody(StandardDirectoryReader.java:58) ~[lucene-core-8.7.0.jar:8.7.0 2dc63e901c60cda27ef3b744bc554f1481b3b067 - atrisharma - 2020-10-29 19:35:28]",
"\tat org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:720) ~[lucene-core-8.7.0.jar:8.7.0 2dc63e901c60cda27ef3b744bc554f1481b3b067 - atrisharma - 2020-10-29 19:35:28]",
"\tat org.apache.lucene.index.StandardDirectoryReader.open(StandardDirectoryReader.java:81) ~[lucene-core-8.7.0.jar:8.7.0 2dc63e901c60cda27ef3b744bc554f1481b3b067 - atrisharma - 2020-10-29 19:35:28]",
"\tat org.apache.lucene.index.DirectoryReader.open(DirectoryReader.java:63) ~[lucene-core-8.7.0.jar:8.7.0 2dc63e901c60cda27ef3b744bc554f1481b3b067 - atrisharma - 2020-10-29 19:35:28]",
"\tat org.elasticsearch.gateway.PersistedClusterStateService.nodeMetadata(PersistedClusterStateService.java:267) ~[elasticsearch-7.10.2.jar:7.10.2]",
"\tat org.elasticsearch.env.NodeEnvironment.loadNodeMetadata(NodeEnvironment.java:409) ~[elasticsearch-7.10.2.jar:7.10.2]",
"\tat org.elasticsearch.env.NodeEnvironment.<init>(NodeEnvironment.java:330) ~[elasticsearch-7.10.2.jar:7.10.2]",
"\tat org.elasticsearch.node.Node.<init>(Node.java:362) ~[elasticsearch-7.10.2.jar:7.10.2]",
"\tat org.elasticsearch.node.Node.<init>(Node.java:289) ~[elasticsearch-7.10.2.jar:7.10.2]",
"\tat org.elasticsearch.bootstrap.Bootstrap$5.<init>(Bootstrap.java:227) ~[elasticsearch-7.10.2.jar:7.10.2]",
"\tat org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:227) ~[elasticsearch-7.10.2.jar:7.10.2]",
"\tat org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:393) ~[elasticsearch-7.10.2.jar:7.10.2]",
"\tat org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:170) ~[elasticsearch-7.10.2.jar:7.10.2]",
"\tat org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:161) ~[elasticsearch-7.10.2.jar:7.10.2]",
"\tat org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86) ~[elasticsearch-7.10.2.jar:7.10.2]",
"\tat org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:127) ~[elasticsearch-cli-7.10.2.jar:7.10.2]",
"\tat org.elasticsearch.cli.Command.main(Command.java:90) ~[elasticsearch-cli-7.10.2.jar:7.10.2]",
"\tat org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:126) ~[elasticsearch-7.10.2.jar:7.10.2]",
"\tat org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:92) ~[elasticsearch-7.10.2.jar:7.10.2]"] }
java.lang.IllegalArgumentException: indexCreatedVersionMajor is in the future: 9
at org.apache.lucene.index.SegmentInfos.<init>(SegmentInfos.java:169)
at org.apache.lucene.index.SegmentInfos.readCommit(SegmentInfos.java:327)
at org.apache.lucene.index.SegmentInfos.readCommit(SegmentInfos.java:291)
at org.apache.lucene.index.StandardDirectoryReader$1.doBody(StandardDirectoryReader.java:61)
at org.apache.lucene.index.StandardDirectoryReader$1.doBody(StandardDirectoryReader.java:58)
at org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:720)
at org.apache.lucene.index.StandardDirectoryReader.open(StandardDirectoryReader.java:81)
at org.apache.lucene.index.DirectoryReader.open(DirectoryReader.java:63)
at org.elasticsearch.gateway.PersistedClusterStateService.nodeMetadata(PersistedClusterStateService.java:267)
at org.elasticsearch.env.NodeEnvironment.loadNodeMetadata(NodeEnvironment.java:409)
at org.elasticsearch.env.NodeEnvironment.<init>(NodeEnvironment.java:330)
at org.elasticsearch.node.Node.<init>(Node.java:362)
at org.elasticsearch.node.Node.<init>(Node.java:289)
at org.elasticsearch.bootstrap.Bootstrap$5.<init>(Bootstrap.java:227)
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:227)
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:393)
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:170)
at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:161)
at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86)
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:127)
at org.elasticsearch.cli.Command.main(Command.java:90)
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:126)
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:92)
For complete error details, refer to the log at /usr/share/elasticsearch/logs/anders-cluster.log
I have left all the configuration as default, other than changing cluster.name in elasticsearch.yml and setting vm.max_map_count=262144.
Does anyone have any suggestions?