Elastic v8.3 Install Errors MacOS

Elasticsearch Version

8.3.1

OS Version

macOS 12.3.1

Problem Description

I'm very new to Elasticsearch. I'm trying to install ES v8.3.1 on my Mac by following the instructions on the download website. However, once I run the command bin/elasticsearch, the installation process begins but there seem to be a lot of errors.

sameermalik@Sameers-MacBook-Pro-210 elasticsearch-8.3.1 % bin/elasticsearch
[2022-07-01T15:37:43,713][INFO ][o.e.n.Node               ] [Sameers-MacBook-Pro-210.local] version[8.3.1], pid[55825], build[tar/b9a6b2867996ba92ceac66cb5bafc6db25e7910e/2022-06-29T18:39:55.731992798Z], OS[Mac OS X/12.3.1/x86_64], JVM[Oracle Corporation/OpenJDK 64-Bit Server VM/18.0.1.1/18.0.1.1+2-6]
[2022-07-01T15:37:43,718][INFO ][o.e.n.Node               ] [Sameers-MacBook-Pro-210.local] JVM home [/Users/sameermalik/elasticsearch-8.3.1/jdk.app/Contents/Home], using bundled JDK [true]
[2022-07-01T15:37:43,718][INFO ][o.e.n.Node               ] [Sameers-MacBook-Pro-210.local] JVM arguments [-Des.networkaddress.cache.ttl=60, -Des.networkaddress.cache.negative.ttl=10, -Djava.security.manager=allow, -XX:+AlwaysPreTouch, -Xss1m, -Djava.awt.headless=true, -Dfile.encoding=UTF-8, -Djna.nosys=true, -XX:-OmitStackTraceInFastThrow, -Dio.netty.noUnsafe=true, -Dio.netty.noKeySetOptimization=true, -Dio.netty.recycler.maxCapacityPerThread=0, -Dlog4j.shutdownHookEnabled=false, -Dlog4j2.disable.jmx=true, -Dlog4j2.formatMsgNoLookups=true, -Djava.locale.providers=SPI,COMPAT, --add-opens=java.base/java.io=ALL-UNNAMED, -XX:+UseG1GC, -Djava.io.tmpdir=/var/folders/1d/d4mhd8d16rb8x5vglgfk9bv80000gn/T/elasticsearch-13987988394355080158, -XX:+HeapDumpOnOutOfMemoryError, -XX:+ExitOnOutOfMemoryError, -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, -Xms16384m, -Xmx16384m, -XX:MaxDirectMemorySize=8589934592, -XX:InitiatingHeapOccupancyPercent=30, -XX:G1ReservePercent=25, -Des.distribution.type=tar, --module-path=/Users/sameermalik/elasticsearch-8.3.1/lib, -Djdk.module.main=org.elasticsearch.server]
[2022-07-01T15:37:45,431][INFO ][c.a.c.i.j.JacksonVersion ] [Sameers-MacBook-Pro-210.local] Package versions: jackson-annotations=2.13.2, jackson-core=2.13.2, jackson-databind=2.13.2.2, jackson-dataformat-xml=2.13.2, jackson-datatype-jsr310=2.13.2, azure-core=1.27.0, Troubleshooting version conflicts: https://aka.ms/azsdk/java/dependency/troubleshoot
[2022-07-01T15:37:46,715][INFO ][o.e.p.PluginsService     ] [Sameers-MacBook-Pro-210.local] loaded module [aggs-matrix-stats]
[2022-07-01T15:37:46,715][INFO ][o.e.p.PluginsService     ] [Sameers-MacBook-Pro-210.local] loaded module [analysis-common]
//...More Modules Loading...//
[2022-07-01T15:37:46,727][INFO ][o.e.p.PluginsService     ] [Sameers-MacBook-Pro-210.local] loaded module [x-pack-watcher]
[2022-07-01T15:37:46,727][INFO ][o.e.p.PluginsService     ] [Sameers-MacBook-Pro-210.local] no plugins loaded
[2022-07-01T15:37:49,167][INFO ][o.e.e.NodeEnvironment    ] [Sameers-MacBook-Pro-210.local] using [1] data paths, mounts [[/System/Volumes/Data (/dev/disk1s2)]], net usable_space [27.9gb], net total_space [465.6gb], types [apfs]
[2022-07-01T15:37:49,168][INFO ][o.e.e.NodeEnvironment    ] [Sameers-MacBook-Pro-210.local] heap size [16gb], compressed ordinary object pointers [true]
[2022-07-01T15:37:49,196][INFO ][o.e.n.Node               ] [Sameers-MacBook-Pro-210.local] node name [Sameers-MacBook-Pro-210.local], node ID [wyP01-fpRb-iJ-0_gPByJQ], cluster name [elasticsearch], roles [data_hot, transform, data_content, data_warm, master, remote_cluster_client, data, data_cold, ingest, data_frozen, ml]
[2022-07-01T15:37:52,004][INFO ][o.e.x.s.Security         ] [Sameers-MacBook-Pro-210.local] Security is enabled
[2022-07-01T15:37:52,350][INFO ][o.e.x.s.a.s.FileRolesStore] [Sameers-MacBook-Pro-210.local] parsed [0] roles from file [/Users/sameermalik/elasticsearch-8.3.1/config/roles.yml]

[2022-07-01T15:37:52,742][INFO ][o.e.x.m.p.l.CppLogMessageHandler] [Sameers-MacBook-Pro-210.local] [controller/55830] [Main.cc@123] controller (64 bit): Version 8.3.1 (Build 249951386bdb3a) Copyright (c) 2022 Elasticsearch BV
[2022-07-01T15:37:53,380][INFO ][o.e.t.n.NettyAllocator   ] [Sameers-MacBook-Pro-210.local] creating NettyAllocator with the following configs: [name=elasticsearch_configured, chunk_size=1mb, suggested_max_allocation_size=1mb, factors={es.unsafe.use_netty_default_chunk_and_page_size=false, g1gc_enabled=true, g1gc_region_size=8mb}]
[2022-07-01T15:37:53,418][INFO ][o.e.i.r.RecoverySettings ] [Sameers-MacBook-Pro-210.local] using rate limit [40mb] with [default=40mb, read=0b, write=0b, max=0b]
[2022-07-01T15:37:53,459][INFO ][o.e.d.DiscoveryModule    ] [Sameers-MacBook-Pro-210.local] using discovery type [multi-node] and seed hosts providers [settings]
[2022-07-01T15:37:54,905][INFO ][o.e.n.Node               ] [Sameers-MacBook-Pro-210.local] initialized
[2022-07-01T15:37:54,905][INFO ][o.e.n.Node               ] [Sameers-MacBook-Pro-210.local] starting ...
[2022-07-01T15:37:54,982][INFO ][o.e.x.s.c.f.PersistentCache] [Sameers-MacBook-Pro-210.local] persistent cache index loaded
[2022-07-01T15:37:54,983][INFO ][o.e.x.d.l.DeprecationIndexingComponent] [Sameers-MacBook-Pro-210.local] deprecation component started
[2022-07-01T15:37:55,119][INFO ][o.e.t.TransportService   ] [Sameers-MacBook-Pro-210.local] publish_address {127.0.0.1:9300}, bound_addresses {[::1]:9300}, {127.0.0.1:9300}
[2022-07-01T15:37:55,409][INFO ][o.e.c.c.ClusterBootstrapService] [Sameers-MacBook-Pro-210.local] this node has not joined a bootstrapped cluster yet; [cluster.initial_master_nodes] is set to [Sameers-MacBook-Pro-210.local]
[2022-07-01T15:37:55,419][INFO ][o.e.c.c.Coordinator      ] [Sameers-MacBook-Pro-210.local] setting initial configuration to VotingConfiguration{wyP01-fpRb-iJ-0_gPByJQ}
[2022-07-01T15:37:55,859][INFO ][o.e.c.s.MasterService    ] [Sameers-MacBook-Pro-210.local] elected-as-master ([1] nodes joined)[_FINISH_ELECTION_, {Sameers-MacBook-Pro-210.local}{wyP01-fpRb-iJ-0_gPByJQ}{Ii-G0UckQO2-2hNs33eiWw}{Sameers-MacBook-Pro-210.local}{127.0.0.1}{127.0.0.1:9300}{cdfhilmrstw} completing election], term: 1, version: 1, delta: master node changed {previous [], current [{Sameers-MacBook-Pro-210.local}{wyP01-fpRb-iJ-0_gPByJQ}{Ii-G0UckQO2-2hNs33eiWw}{Sameers-MacBook-Pro-210.local}{127.0.0.1}{127.0.0.1:9300}{cdfhilmrstw}]}
[2022-07-01T15:37:55,938][INFO ][o.e.c.c.CoordinationState] [Sameers-MacBook-Pro-210.local] cluster UUID set to [NwvIA_GUS8CD4lEQILtbeA]
[2022-07-01T15:37:55,991][INFO ][o.e.c.s.ClusterApplierService] [Sameers-MacBook-Pro-210.local] master node changed {previous [], current [{Sameers-MacBook-Pro-210.local}{wyP01-fpRb-iJ-0_gPByJQ}{Ii-G0UckQO2-2hNs33eiWw}{Sameers-MacBook-Pro-210.local}{127.0.0.1}{127.0.0.1:9300}{cdfhilmrstw}]}, term: 1, version: 1, reason: Publication{term=1, version=1}
[2022-07-01T15:37:56,024][INFO ][o.e.h.AbstractHttpServerTransport] [Sameers-MacBook-Pro-210.local] publish_address {192.168.1.158:9200}, bound_addresses {[::]:9200}
[2022-07-01T15:37:56,024][INFO ][o.e.n.Node               ] [Sameers-MacBook-Pro-210.local] started {Sameers-MacBook-Pro-210.local}{wyP01-fpRb-iJ-0_gPByJQ}{Ii-G0UckQO2-2hNs33eiWw}{Sameers-MacBook-Pro-210.local}{127.0.0.1}{127.0.0.1:9300}{cdfhilmrstw}{ml.machine_memory=34359738368, xpack.installed=true, ml.max_jvm_size=17179869184}
[2022-07-01T15:37:56,031][WARN ][o.e.c.r.a.DiskThresholdMonitor] [Sameers-MacBook-Pro-210.local] high disk watermark [90%] exceeded on [wyP01-fpRb-iJ-0_gPByJQ][Sameers-MacBook-Pro-210.local][/Users/sameermalik/elasticsearch-8.3.1/data] free: 27.9gb[6%], shards will be relocated away from this node; currently relocating away shards totalling [0] bytes; the node is expected to continue to exceed the high disk watermark when these relocations are complete
[2022-07-01T15:37:56,125][INFO ][o.e.g.GatewayService     ] [Sameers-MacBook-Pro-210.local] recovered [0] indices into cluster_state
[2022-07-01T15:37:56,304][INFO ][o.e.c.m.MetadataIndexTemplateService] [Sameers-MacBook-Pro-210.local] adding component template [.deprecation-indexing-mappings]
[2022-07-01T15:37:56,309][INFO ][o.e.c.m.MetadataIndexTemplateService] [Sameers-MacBook-Pro-210.local] adding component template [.deprecation-indexing-settings]
[2022-07-01T15:37:56,344][INFO ][o.e.c.m.MetadataIndexTemplateService] [Sameers-MacBook-Pro-210.local] adding index template [.watch-history-16] for index patterns [.watcher-history-16*]
[2022-07-01T15:37:56,352][INFO ][o.e.c.m.MetadataIndexTemplateService] [Sameers-MacBook-Pro-210.local] adding index template [ilm-history] for index patterns [ilm-history-5*]
[2022-07-01T15:37:56,360][INFO ][o.e.c.m.MetadataIndexTemplateService] [Sameers-MacBook-Pro-210.local] adding index template [.slm-history] for index patterns [.slm-history-5*]
[2022-07-01T15:37:56,364][INFO ][o.e.c.m.MetadataIndexTemplateService] [Sameers-MacBook-Pro-210.local] adding component template [logs-settings]
[2022-07-01T15:37:56,368][INFO ][o.e.c.m.MetadataIndexTemplateService] [Sameers-MacBook-Pro-210.local] adding component template [logs-mappings]
[2022-07-01T15:37:56,372][INFO ][o.e.c.m.MetadataIndexTemplateService] [Sameers-MacBook-Pro-210.local] adding component template [synthetics-mappings]
[2022-07-01T15:37:56,376][INFO ][o.e.c.m.MetadataIndexTemplateService] [Sameers-MacBook-Pro-210.local] adding component template [metrics-mappings]
[2022-07-01T15:37:56,384][INFO ][o.e.c.m.MetadataIndexTemplateService] [Sameers-MacBook-Pro-210.local] adding component template [data-streams-mappings]
[2022-07-01T15:37:56,387][INFO ][o.e.c.m.MetadataIndexTemplateService] [Sameers-MacBook-Pro-210.local] adding component template [synthetics-settings]
[2022-07-01T15:37:56,390][INFO ][o.e.c.m.MetadataIndexTemplateService] [Sameers-MacBook-Pro-210.local] adding component template [metrics-settings]
[2022-07-01T15:37:56,409][INFO ][o.e.c.m.MetadataIndexTemplateService] [Sameers-MacBook-Pro-210.local] adding index template [.monitoring-ent-search-mb] for index patterns [.monitoring-ent-search-8-*]
[2022-07-01T15:37:56,431][INFO ][o.e.c.m.MetadataIndexTemplateService] [Sameers-MacBook-Pro-210.local] adding index template [.monitoring-kibana-mb] for index patterns [.monitoring-kibana-8-*]
[2022-07-01T15:37:56,456][INFO ][o.e.c.m.MetadataIndexTemplateService] [Sameers-MacBook-Pro-210.local] adding index template [.monitoring-beats-mb] for index patterns [.monitoring-beats-8-*]
[2022-07-01T15:37:56,485][INFO ][o.e.c.m.MetadataIndexTemplateService] [Sameers-MacBook-Pro-210.local] adding index template [.monitoring-es-mb] for index patterns [.monitoring-es-8-*]
[2022-07-01T15:37:56,491][INFO ][o.e.c.m.MetadataIndexTemplateService] [Sameers-MacBook-Pro-210.local] adding template [.monitoring-alerts-7] for index patterns [.monitoring-alerts-7]
[2022-07-01T15:37:56,499][INFO ][o.e.c.m.MetadataIndexTemplateService] [Sameers-MacBook-Pro-210.local] adding template [.monitoring-beats] for index patterns [.monitoring-beats-7-*]
[2022-07-01T15:37:56,512][INFO ][o.e.c.m.MetadataIndexTemplateService] [Sameers-MacBook-Pro-210.local] adding index template [.monitoring-logstash-mb] for index patterns [.monitoring-logstash-8-*]
[2022-07-01T15:37:56,517][INFO ][o.e.c.m.MetadataIndexTemplateService] [Sameers-MacBook-Pro-210.local] adding template [.monitoring-kibana] for index patterns [.monitoring-kibana-7-*]
[2022-07-01T15:37:56,527][INFO ][o.e.c.m.MetadataIndexTemplateService] [Sameers-MacBook-Pro-210.local] adding template [.monitoring-es] for index patterns [.monitoring-es-7-*]
[2022-07-01T15:37:56,532][INFO ][o.e.c.m.MetadataIndexTemplateService] [Sameers-MacBook-Pro-210.local] adding template [.monitoring-logstash] for index patterns [.monitoring-logstash-7-*]
[2022-07-01T15:37:56,538][INFO ][o.e.c.m.MetadataIndexTemplateService] [Sameers-MacBook-Pro-210.local] adding index template [.ml-stats] for index patterns [.ml-stats-*]
[2022-07-01T15:37:56,553][INFO ][o.e.c.m.MetadataIndexTemplateService] [Sameers-MacBook-Pro-210.local] adding index template [.ml-anomalies-] for index patterns [.ml-anomalies-*]
[2022-07-01T15:37:56,557][INFO ][o.e.c.m.MetadataIndexTemplateService] [Sameers-MacBook-Pro-210.local] adding index template [.ml-state] for index patterns [.ml-state*]
[2022-07-01T15:37:56,563][INFO ][o.e.c.m.MetadataIndexTemplateService] [Sameers-MacBook-Pro-210.local] adding index template [.ml-notifications-000002] for index patterns [.ml-notifications-000002]
[2022-07-01T15:37:56,713][INFO ][o.e.c.m.MetadataIndexTemplateService] [Sameers-MacBook-Pro-210.local] adding index template [.deprecation-indexing-template] for index patterns [.logs-deprecation.*]
[2022-07-01T15:37:56,719][INFO ][o.e.c.m.MetadataIndexTemplateService] [Sameers-MacBook-Pro-210.local] adding index template [metrics] for index patterns [metrics-*-*]
[2022-07-01T15:37:56,725][INFO ][o.e.c.m.MetadataIndexTemplateService] [Sameers-MacBook-Pro-210.local] adding index template [logs] for index patterns [logs-*-*]
[2022-07-01T15:37:56,731][INFO ][o.e.c.m.MetadataIndexTemplateService] [Sameers-MacBook-Pro-210.local] adding index template [synthetics] for index patterns [synthetics-*-*]
[2022-07-01T15:37:56,886][INFO ][o.e.x.i.a.TransportPutLifecycleAction] [Sameers-MacBook-Pro-210.local] adding index lifecycle policy [.deprecation-indexing-ilm-policy]
[2022-07-01T15:37:56,979][INFO ][o.e.x.i.a.TransportPutLifecycleAction] [Sameers-MacBook-Pro-210.local] adding index lifecycle policy [365-days-default]
[2022-07-01T15:37:57,066][INFO ][o.e.x.i.a.TransportPutLifecycleAction] [Sameers-MacBook-Pro-210.local] adding index lifecycle policy [slm-history-ilm-policy]
[2022-07-01T15:37:57,142][INFO ][o.e.x.i.a.TransportPutLifecycleAction] [Sameers-MacBook-Pro-210.local] adding index lifecycle policy [180-days-default]
[2022-07-01T15:37:57,252][INFO ][o.e.x.i.a.TransportPutLifecycleAction] [Sameers-MacBook-Pro-210.local] adding index lifecycle policy [7-days-default]
[2022-07-01T15:37:57,344][INFO ][o.e.x.i.a.TransportPutLifecycleAction] [Sameers-MacBook-Pro-210.local] adding index lifecycle policy [synthetics]
[2022-07-01T15:37:57,434][INFO ][o.e.x.i.a.TransportPutLifecycleAction] [Sameers-MacBook-Pro-210.local] adding index lifecycle policy [90-days-default]
[2022-07-01T15:37:57,504][INFO ][o.e.x.i.a.TransportPutLifecycleAction] [Sameers-MacBook-Pro-210.local] adding index lifecycle policy [metrics]
[2022-07-01T15:37:57,576][INFO ][o.e.x.i.a.TransportPutLifecycleAction] [Sameers-MacBook-Pro-210.local] adding index lifecycle policy [logs]
[2022-07-01T15:37:57,667][INFO ][o.e.x.i.a.TransportPutLifecycleAction] [Sameers-MacBook-Pro-210.local] adding index lifecycle policy [.monitoring-8-ilm-policy]
[2022-07-01T15:37:57,722][INFO ][o.e.x.i.a.TransportPutLifecycleAction] [Sameers-MacBook-Pro-210.local] adding index lifecycle policy [watch-history-ilm-policy-16]
[2022-07-01T15:37:57,794][INFO ][o.e.x.i.a.TransportPutLifecycleAction] [Sameers-MacBook-Pro-210.local] adding index lifecycle policy [ilm-history-ilm-policy]
[2022-07-01T15:37:57,865][INFO ][o.e.x.i.a.TransportPutLifecycleAction] [Sameers-MacBook-Pro-210.local] adding index lifecycle policy [30-days-default]
[2022-07-01T15:37:57,954][INFO ][o.e.x.i.a.TransportPutLifecycleAction] [Sameers-MacBook-Pro-210.local] adding index lifecycle policy [ml-size-based-ilm-policy]
[2022-07-01T15:37:58,045][INFO ][o.e.x.i.a.TransportPutLifecycleAction] [Sameers-MacBook-Pro-210.local] adding index lifecycle policy [.fleet-actions-results-ilm-policy]
[2022-07-01T15:37:58,222][INFO ][o.e.l.LicenseService     ] [Sameers-MacBook-Pro-210.local] license [5ea92de0-8259-4426-b747-186124bd848e] mode [basic] - valid
[2022-07-01T15:37:58,223][INFO ][o.e.x.s.a.Realms         ] [Sameers-MacBook-Pro-210.local] license mode is [basic], currently licensed security realms are [reserved/reserved,file/default_file,native/default_native]
[2022-07-01T15:37:59,222][INFO ][o.e.c.m.MetadataCreateIndexService] [Sameers-MacBook-Pro-210.local] [.geoip_databases] creating index, cause [auto(bulk api)], templates [], shards [1]/[0]
[2022-07-01T15:37:59,240][INFO ][o.e.c.r.a.AllocationService] [Sameers-MacBook-Pro-210.local] current.health="RED" message="Cluster health status changed from [YELLOW] to [RED] (reason: [auto-create])." previous.health="YELLOW" reason="auto-create"
[2022-07-01T15:38:05,171][INFO ][o.e.x.s.InitialNodeSecurityAutoConfiguration] [Sameers-MacBook-Pro-210.local] HTTPS has been configured with automatically generated certificates, and the CA's hex-encoded SHA-256 fingerprint is [625198e47358bc46c879339a9dc5d07064860fa4aca3d2cc76e2d602d52a74b6]
[2022-07-01T15:38:05,174][INFO ][o.e.x.s.s.SecurityIndexManager] [Sameers-MacBook-Pro-210.local] security index does not exist, creating [.security-7] with alias [.security]
[2022-07-01T15:38:05,187][INFO ][o.e.x.s.e.InternalEnrollmentTokenGenerator] [Sameers-MacBook-Pro-210.local] Will not generate node enrollment token because node is only bound on localhost for transport and cannot connect to nodes from other hosts
[2022-07-01T15:38:05,238][INFO ][o.e.c.m.MetadataCreateIndexService] [Sameers-MacBook-Pro-210.local] [.security-7] creating index, cause [api], templates [], shards [1]/[0]
[2022-07-01T15:38:05,273][INFO ][o.e.x.s.s.SecurityIndexManager] [Sameers-MacBook-Pro-210.local] security index does not exist, creating [.security-7] with alias [.security]
[2022-07-01T15:39:05,365][ERROR][o.e.x.s.e.InternalEnrollmentTokenGenerator] [Sameers-MacBook-Pro-210.local] Failed to create enrollment token when generating API key
org.elasticsearch.action.UnavailableShardsException: [.security-7][0] primary shard is not active Timeout: [1m], request: [BulkShardRequest [[.security-7][0]] containing [index {[.security][-fFFu4EBKKXMwL5EOlI7], source[{"doc_type":"api_key","creation_time":1656704285253,"expiration_time":1656706085253,"api_key_invalidated":false,"api_key_hash":"{PBKDF2}10000$ZL7KcUHRRj35gyu8Fi1y8Ln/RILbIQ+6iO2L5TKfZGQ=$qNsfuqpLr4djuMRE/WgZX4THk+K5+u3lfNiCRgKUokI=","role_descriptors":{"create_enrollment_token":{"cluster":["cluster:admin/xpack/security/enroll/kibana"],"indices":[],"applications":[],"run_as":[],"metadata":{},"type":"role"}},"limited_by_role_descriptors":{"_xpack_security":{"cluster":["all"],"indices":[{"names":["*"],"privileges":["all"],"allow_restricted_indices":true}],"applications":[],"run_as":["*"],"metadata":{"_reserved":true},"type":"role"}},"name":"enrollment_token_API_key_-PFFu4EBKKXMwL5EOlI6","version":8030199,"metadata_flattened":null,"creator":{"principal":"_xpack_security","full_name":null,"email":null,"metadata":{},"realm":"__attach","realm_type":"__attach"}}]}] blocking until refresh]
	at org.elasticsearch.action.support.replication.TransportReplicationAction$ReroutePhase.retryBecauseUnavailable(TransportReplicationAction.java:1074) [elasticsearch-8.3.1.jar:?]
	at org.elasticsearch.action.support.replication.TransportReplicationAction$ReroutePhase.doRun(TransportReplicationAction.java:874) [elasticsearch-8.3.1.jar:?]
	at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:26) [elasticsearch-8.3.1.jar:?]
	at org.elasticsearch.action.support.replication.TransportReplicationAction$ReroutePhase$2.onTimeout(TransportReplicationAction.java:1033) [elasticsearch-8.3.1.jar:?]
	at org.elasticsearch.cluster.ClusterStateObserver$ContextPreservingListener.onTimeout(ClusterStateObserver.java:345) [elasticsearch-8.3.1.jar:?]
	at org.elasticsearch.cluster.ClusterStateObserver$ObserverClusterStateListener.onTimeout(ClusterStateObserver.java:263) [elasticsearch-8.3.1.jar:?]
	at org.elasticsearch.cluster.service.ClusterApplierService$NotifyTimeout.run(ClusterApplierService.java:649) [elasticsearch-8.3.1.jar:?]
	at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:710) [elasticsearch-8.3.1.jar:?]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) [?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) [?:?]
	at java.lang.Thread.run(Thread.java:833) [?:?]
[2022-07-01T15:39:26,027][WARN ][o.e.c.r.a.DiskThresholdMonitor] [Sameers-MacBook-Pro-210.local] high disk watermark [90%] exceeded on [wyP01-fpRb-iJ-0_gPByJQ][Sameers-MacBook-Pro-210.local][/Users/sameermalik/elasticsearch-8.3.1/data] free: 27.9gb[5.9%], shards will be relocated away from this node; currently relocating away shards totalling [0] bytes; the node is expected to continue to exceed the high disk watermark when these relocations are complete
[2022-07-01T15:39:29,335][ERROR][o.e.i.g.GeoIpDownloader  ] [Sameers-MacBook-Pro-210.local] error downloading geoip database [GeoLite2-ASN.mmdb]
org.elasticsearch.action.UnavailableShardsException: [.geoip_databases][0] primary shard is not active Timeout: [1m], request: [BulkShardRequest [[.geoip_databases][0]] containing [index {[.geoip_databases][GeoLite2-ASN.mmdb_0_1656704278011], source[n/a, actual length: [1mb], max length: 2kb]}]]
	at org.elasticsearch.action.support.replication.TransportReplicationAction$ReroutePhase.retryBecauseUnavailable(TransportReplicationAction.java:1074) ~[elasticsearch-8.3.1.jar:?]
	at org.elasticsearch.action.support.replication.TransportReplicationAction$ReroutePhase.doRun(TransportReplicationAction.java:874) ~[elasticsearch-8.3.1.jar:?]
	at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:26) [elasticsearch-8.3.1.jar:?]
	at org.elasticsearch.action.support.replication.TransportReplicationAction$ReroutePhase$2.onTimeout(TransportReplicationAction.java:1033) ~[elasticsearch-8.3.1.jar:?]
	at org.elasticsearch.cluster.ClusterStateObserver$ContextPreservingListener.onTimeout(ClusterStateObserver.java:345) ~[elasticsearch-8.3.1.jar:?]
	at org.elasticsearch.cluster.ClusterStateObserver$ObserverClusterStateListener.onTimeout(ClusterStateObserver.java:263) ~[elasticsearch-8.3.1.jar:?]
	at org.elasticsearch.cluster.service.ClusterApplierService$NotifyTimeout.run(ClusterApplierService.java:649) ~[elasticsearch-8.3.1.jar:?]
	at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:710) ~[elasticsearch-8.3.1.jar:?]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) [?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) [?:?]
	at java.lang.Thread.run(Thread.java:833) [?:?]
[2022-07-01T15:39:35,354][ERROR][o.e.x.s.InitialNodeSecurityAutoConfiguration] [Sameers-MacBook-Pro-210.local] Failed to generate credentials for the elastic built-in superuser
org.elasticsearch.action.UnavailableShardsException: [.security-7][0] primary shard is not active Timeout: [1m], request: [BulkShardRequest [[.security-7][0]] containing [index {[.security][reserved-user-elastic], source[{"password":"08xKs==xiwV*kg6BSWOs","enabled":true,"type":"reserved-user"}]}] and a refresh]
	at org.elasticsearch.action.support.replication.TransportReplicationAction$ReroutePhase.retryBecauseUnavailable(TransportReplicationAction.java:1074) [elasticsearch-8.3.1.jar:?]
	at org.elasticsearch.action.support.replication.TransportReplicationAction$ReroutePhase.doRun(TransportReplicationAction.java:874) [elasticsearch-8.3.1.jar:?]
	at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:26) [elasticsearch-8.3.1.jar:?]
	at org.elasticsearch.action.support.replication.TransportReplicationAction$ReroutePhase$2.onTimeout(TransportReplicationAction.java:1033) [elasticsearch-8.3.1.jar:?]
	at org.elasticsearch.cluster.ClusterStateObserver$ContextPreservingListener.onTimeout(ClusterStateObserver.java:345) [elasticsearch-8.3.1.jar:?]
	at org.elasticsearch.cluster.ClusterStateObserver$ObserverClusterStateListener.onTimeout(ClusterStateObserver.java:263) [elasticsearch-8.3.1.jar:?]
	at org.elasticsearch.cluster.service.ClusterApplierService$NotifyTimeout.run(ClusterApplierService.java:649) [elasticsearch-8.3.1.jar:?]
	at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:710) [elasticsearch-8.3.1.jar:?]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) [?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) [?:?]
	at java.lang.Thread.run(Thread.java:833) [?:?]




━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✅ Elasticsearch security features have been automatically configured!
✅ Authentication is enabled and cluster connections are encrypted.

❌ Unable to auto-generate the password for the elastic built-in superuser.

ℹī¸  HTTP CA certificate SHA-256 fingerprint:
  625198e47358bc46c879339a9dc5d07064860fa4aca3d2cc76e2d602d52a74b6

❌ Unable to generate an enrollment token for Kibana instances, try invoking `bin/elasticsearch-create-enrollment-token -s kibana`.

ℹī¸  Configure other nodes to join this cluster:
â€ĸ On this node:
  ⁃ Create an enrollment token with `bin/elasticsearch-create-enrollment-token -s node`.
  ⁃ Uncomment the transport.host setting at the end of config/elasticsearch.yml.
  ⁃ Restart Elasticsearch.
â€ĸ On other nodes:
  ⁃ Start Elasticsearch with `bin/elasticsearch --enrollment-token <token>`, using the enrollment token that you generated.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━




[2022-07-01T15:40:26,038][WARN ][o.e.c.r.a.DiskThresholdMonitor] [Sameers-MacBook-Pro-210.local] high disk watermark [90%] exceeded on [wyP01-fpRb-iJ-0_gPByJQ][Sameers-MacBook-Pro-210.local][/Users/sameermalik/elasticsearch-8.3.1/data] free: 27.9gb[5.9%], shards will be relocated away from this node; currently relocating away shards totalling [0] bytes; the node is expected to continue to exceed the high disk watermark when these relocations are complete
[2022-07-01T15:40:29,485][ERROR][o.e.i.g.GeoIpDownloader  ] [Sameers-MacBook-Pro-210.local] error downloading geoip database [GeoLite2-City.mmdb]
org.elasticsearch.action.UnavailableShardsException: [.geoip_databases][0] primary shard is not active Timeout: [1m], request: [BulkShardRequest [[.geoip_databases][0]] containing [index {[.geoip_databases][GeoLite2-City.mmdb_0_1656704369336], source[n/a, actual length: [1mb], max length: 2kb]}]]
	at org.elasticsearch.action.support.replication.TransportReplicationAction$ReroutePhase.retryBecauseUnavailable(TransportReplicationAction.java:1074) ~[elasticsearch-8.3.1.jar:?]
	at org.elasticsearch.action.support.replication.TransportReplicationAction$ReroutePhase.doRun(TransportReplicationAction.java:874) ~[elasticsearch-8.3.1.jar:?]
	at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:26) [elasticsearch-8.3.1.jar:?]
	at org.elasticsearch.action.support.replication.TransportReplicationAction$ReroutePhase$2.onTimeout(TransportReplicationAction.java:1033) ~[elasticsearch-8.3.1.jar:?]
	at org.elasticsearch.cluster.ClusterStateObserver$ContextPreservingListener.onTimeout(ClusterStateObserver.java:345) ~[elasticsearch-8.3.1.jar:?]
	at org.elasticsearch.cluster.ClusterStateObserver$ObserverClusterStateListener.onTimeout(ClusterStateObserver.java:263) ~[elasticsearch-8.3.1.jar:?]
	at org.elasticsearch.cluster.service.ClusterApplierService$NotifyTimeout.run(ClusterApplierService.java:649) ~[elasticsearch-8.3.1.jar:?]
	at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:710) ~[elasticsearch-8.3.1.jar:?]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) [?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) [?:?]
	at java.lang.Thread.run(Thread.java:833) [?:?]
[2022-07-01T15:41:03,444][WARN ][o.e.x.s.t.n.SecurityNetty4HttpServerTransport] [Sameers-MacBook-Pro-210.local] received plaintext http traffic on an https channel, closing connection Netty4HttpChannel{localAddress=/[0:0:0:0:0:0:0:1]:9200, remoteAddress=/[0:0:0:0:0:0:0:1]:56470}
[2022-07-01T15:41:16,797][WARN ][o.e.x.s.t.n.SecurityNetty4HttpServerTransport] [Sameers-MacBook-Pro-210.local] received plaintext http traffic on an https channel, closing connection Netty4HttpChannel{localAddress=/[0:0:0:0:0:0:0:1]:9200, remoteAddress=/[0:0:0:0:0:0:0:1]:56473}
[2022-07-01T15:41:29,648][ERROR][o.e.i.g.GeoIpDownloader  ] [Sameers-MacBook-Pro-210.local] error downloading geoip database [GeoLite2-Country.mmdb]
org.elasticsearch.action.UnavailableShardsException: [.geoip_databases][0] primary shard is not active Timeout: [1m], request: [BulkShardRequest [[.geoip_databases][0]] containing [index {[.geoip_databases][GeoLite2-Country.mmdb_0_1656704429486], source[n/a, actual length: [1mb], max length: 2kb]}]]
	at org.elasticsearch.action.support.replication.TransportReplicationAction$ReroutePhase.retryBecauseUnavailable(TransportReplicationAction.java:1074) ~[elasticsearch-8.3.1.jar:?]
	at org.elasticsearch.action.support.replication.TransportReplicationAction$ReroutePhase.doRun(TransportReplicationAction.java:874) ~[elasticsearch-8.3.1.jar:?]
	at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:26) [elasticsearch-8.3.1.jar:?]
	at org.elasticsearch.action.support.replication.TransportReplicationAction$ReroutePhase$2.onTimeout(TransportReplicationAction.java:1033) ~[elasticsearch-8.3.1.jar:?]
	at org.elasticsearch.cluster.ClusterStateObserver$ContextPreservingListener.onTimeout(ClusterStateObserver.java:345) ~[elasticsearch-8.3.1.jar:?]
	at org.elasticsearch.cluster.ClusterStateObserver$ObserverClusterStateListener.onTimeout(ClusterStateObserver.java:263) ~[elasticsearch-8.3.1.jar:?]
	at org.elasticsearch.cluster.service.ClusterApplierService$NotifyTimeout.run(ClusterApplierService.java:649) ~[elasticsearch-8.3.1.jar:?]
	at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:710) ~[elasticsearch-8.3.1.jar:?]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) [?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) [?:?]
	at java.lang.Thread.run(Thread.java:833) [?:?]
[2022-07-01T15:41:56,059][WARN ][o.e.c.r.a.DiskThresholdMonitor] [Sameers-MacBook-Pro-210.local] high disk watermark [90%] exceeded on [wyP01-fpRb-iJ-0_gPByJQ][Sameers-MacBook-Pro-210.local][/Users/sameermalik/elasticsearch-8.3.1/data] free: 27.9gb[6%], shards will be relocated away from this node; currently relocating away shards totalling [0] bytes; the node is expected to continue to exceed the high disk watermark when these relocations are complete

Any help would be greatly appreciated:)

Thanks!

Hi @Sameer_Malik Welcome to the community.

looks like you disk is extremely full.

[2022-07-01T15:37:56,031][WARN ][o.e.c.r.a.DiskThresholdMonitor] [Sameers-MacBook-Pro-210.local] high disk watermark [90%] exceeded on [wyP01-fpRb-iJ-0_gPByJQ][Sameers-MacBook-Pro-210.local][/Users/sameermalik/elasticsearch-8.3.1/data] free: 27.9gb[6%], shards will be relocated away from this node; currently relocating away shards totalling [0] bytes; the node is expected to continue to exceed the high disk watermark when these relocations are complete

So much so that You have exceeded the 90% disk threshold watermark and thus elastic will not create and allocate new data. New indices and so you're install is not finishing.

You need to get your disc down below 80% to install elasticsearch with defaults.

If you have another disk to install it on you could try that.

You can change the disk water marks if needed but that's your issue.

2 Likes

Thank you!

HI. Got the same issue today. Have 200 Gb of disk space available .

Screenshot 2022-07-18 at 14.58.15