我在我的项目中使用elasticsearch-8.2.2
,当我试图启动elasticsearch-8.2.2
服务器时,我得到下面的错误。我使用mac。
错误:
[2022-06-13T10:07:35,261][INFO ][o.e.x.s.a.s.FileRolesStore] [Prateeks-MacBook-Pro.local] parsed [0] roles from file [/Users/prats/Documents/Prateek/elk/elasticsearch-8.2.2/config/roles.yml]
[2022-06-13T10:07:35,879][INFO ][o.e.t.n.NettyAllocator ] [Prateeks-MacBook-Pro.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=4mb}]
[2022-06-13T10:07:35,893][INFO ][o.e.i.r.RecoverySettings ] [Prateeks-MacBook-Pro.local] using rate limit [40mb] with [default=40mb, read=0b, write=0b, max=0b]
[2022-06-13T10:07:35,908][INFO ][o.e.d.DiscoveryModule ] [Prateeks-MacBook-Pro.local] using discovery type [multi-node] and seed hosts providers [settings]
[2022-06-13T10:07:36,366][INFO ][o.e.n.Node ] [Prateeks-MacBook-Pro.local] initialized
[2022-06-13T10:07:36,366][INFO ][o.e.n.Node ] [Prateeks-MacBook-Pro.local] starting ...
[2022-06-13T10:07:36,430][INFO ][o.e.x.s.c.f.PersistentCache] [Prateeks-MacBook-Pro.local] persistent cache index loaded
[2022-06-13T10:07:36,430][INFO ][o.e.x.d.l.DeprecationIndexingComponent] [Prateeks-MacBook-Pro.local] deprecation component started
[2022-06-13T10:07:36,480][INFO ][o.e.t.TransportService ] [Prateeks-MacBook-Pro.local] publish_address {127.0.0.1:9300}, bound_addresses {[::1]:9300}, {127.0.0.1:9300}
[2022-06-13T10:07:36,881][INFO ][o.e.c.c.Coordinator ] [Prateeks-MacBook-Pro.local] cluster UUID [BXhbMnOMSHCsi5hQcfT-9w]
[2022-06-13T10:07:37,036][INFO ][o.e.c.s.MasterService ] [Prateeks-MacBook-Pro.local] elected-as-master ([1] nodes joined)[_FINISH_ELECTION_, {Prateeks-MacBook-Pro.local}{VZo5UgAYQAiFG0_DBzrLGw}{RE8DYyfpRECSSZaYGjdivg}{127.0.0.1}{127.0.0.1:9300}{cdfhilmrstw} completing election], term: 4, version: 141, delta: master node changed {previous [], current [{Prateeks-MacBook-Pro.local}{VZo5UgAYQAiFG0_DBzrLGw}{RE8DYyfpRECSSZaYGjdivg}{127.0.0.1}{127.0.0.1:9300}{cdfhilmrstw}]}
[2022-06-13T10:07:37,114][INFO ][o.e.c.s.ClusterApplierService] [Prateeks-MacBook-Pro.local] master node changed {previous [], current [{Prateeks-MacBook-Pro.local}{VZo5UgAYQAiFG0_DBzrLGw}{RE8DYyfpRECSSZaYGjdivg}{127.0.0.1}{127.0.0.1:9300}{cdfhilmrstw}]}, term: 4, version: 141, reason: Publication{term=4, version=141}
[2022-06-13T10:07:37,131][INFO ][o.e.h.AbstractHttpServerTransport] [Prateeks-MacBook-Pro.local] publish_address {192.168.0.2:9200}, bound_addresses {[::]:9200}
[2022-06-13T10:07:37,132][INFO ][o.e.n.Node ] [Prateeks-MacBook-Pro.local] started
[2022-06-13T10:07:37,378][INFO ][o.e.l.LicenseService ] [Prateeks-MacBook-Pro.local] license [38db70a1-a789-47c7-841e-bea5da026f2a] mode [basic] - valid
[2022-06-13T10:07:37,378][INFO ][o.e.x.s.a.Realms ] [Prateeks-MacBook-Pro.local] license mode is [basic], currently licensed security realms are [reserved/reserved,file/default_file,native/default_native]
[2022-06-13T10:07:37,380][INFO ][o.e.g.GatewayService ] [Prateeks-MacBook-Pro.local] recovered [12] indices into cluster_state
[2022-06-13T10:07:37,511][ERROR][o.e.i.g.GeoIpDownloader ] [Prateeks-MacBook-Pro.local] exception during geoip databases update
org.elasticsearch.ElasticsearchException: not all primary shards of [.geoip_databases] index are active
at org.elasticsearch.ingest.geoip.GeoIpDownloader.updateDatabases(GeoIpDownloader.java:135) ~[ingest-geoip-8.2.2.jar:8.2.2]
at org.elasticsearch.ingest.geoip.GeoIpDownloader.runDownloader(GeoIpDownloader.java:275) [ingest-geoip-8.2.2.jar:8.2.2]
at org.elasticsearch.ingest.geoip.GeoIpDownloaderTaskExecutor.nodeOperation(GeoIpDownloaderTaskExecutor.java:102) [ingest-geoip-8.2.2.jar:8.2.2]
at org.elasticsearch.ingest.geoip.GeoIpDownloaderTaskExecutor.nodeOperation(GeoIpDownloaderTaskExecutor.java:48) [ingest-geoip-8.2.2.jar:8.2.2]
at org.elasticsearch.persistent.NodePersistentTasksExecutor$1.doRun(NodePersistentTasksExecutor.java:42) [elasticsearch-8.2.2.jar:8.2.2]
at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:773) [elasticsearch-8.2.2.jar:8.2.2]
at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:26) [elasticsearch-8.2.2.jar:8.2.2]
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-06-13T10:07:39,477][WARN ][r.suppressed ] [Prateeks-MacBook-Pro.local] path: /.kibana_task_manager/_search, params: {ignore_unavailable=true, index=.kibana_task_manager}
org.elasticsearch.action.search.SearchPhaseExecutionException: all shards failed
at org.elasticsearch.action.search.AbstractSearchAsyncAction.onPhaseFailure(AbstractSearchAsyncAction.java:730) [elasticsearch-8.2.2.jar:8.2.2]
at org.elasticsearch.action.search.AbstractSearchAsyncAction.executeNextPhase(AbstractSearchAsyncAction.java:417) [elasticsearch-8.2.2.jar:8.2.2]
at org.elasticsearch.action.search.AbstractSearchAsyncAction.onPhaseDone(AbstractSearchAsyncAction.java:762) [elasticsearch-8.2.2.jar:8.2.2]
at org.elasticsearch.action.search.AbstractSearchAsyncAction.onShardFailure(AbstractSearchAsyncAction.java:514) [elasticsearch-8.2.2.jar:8.2.2]
at org.elasticsearch.action.search.AbstractSearchAsyncAction$1.onFailure(AbstractSearchAsyncAction.java:348) [elasticsearch-8.2.2.jar:8.2.2]
at org.elasticsearch.action.ActionListener$Delegating.onFailure(ActionListener.java:92) [elasticsearch-8.2.2.jar:8.2.2]
at org.elasticsearch.action.ActionListenerResponseHandler.handleException(ActionListenerResponseHandler.java:48) [elasticsearch-8.2.2.jar:8.2.2]
at org.elasticsearch.action.search.SearchTransportService$ConnectionCountingHandler.handleException(SearchTransportService.java:642) [elasticsearch-8.2.2.jar:8.2.2]
at org.elasticsearch.transport.TransportService$UnregisterChildTransportResponseHandler.handleException(TransportService.java:1609) [elasticsearch-8.2.2.jar:8.2.2]
at org.elasticsearch.transport.TransportService$ContextRestoreResponseHandler.handleException(TransportService.java:1346) [elasticsearch-8.2.2.jar:8.2.2]
at org.elasticsearch.transport.TransportService$DirectResponseChannel.processException(TransportService.java:1468) [elasticsearch-8.2.2.jar:8.2.2]
at org.elasticsearch.transport.TransportService$DirectResponseChannel.sendResponse(TransportService.java:1443) [elasticsearch-8.2.2.jar:8.2.2]
at org.elasticsearch.transport.TaskTransportChannel.sendResponse(TaskTransportChannel.java:50) [elasticsearch-8.2.2.jar:8.2.2]
at org.elasticsearch.action.support.ChannelActionListener.onFailure(ChannelActionListener.java:47) [elasticsearch-8.2.2.jar:8.2.2]
at org.elasticsearch.action.ActionRunnable.onFailure(ActionRunnable.java:77) [elasticsearch-8.2.2.jar:8.2.2]
at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.onFailure(ThreadContext.java:761) [elasticsearch-8.2.2.jar:8.2.2]
at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:28) [elasticsearch-8.2.2.jar:8.2.2]
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) [?:?]
Caused by: org.elasticsearch.action.NoShardAvailableActionException: [Prateeks-MacBook-Pro.local][127.0.0.1:9300][indices:data/read/search[phase/query]]
at org.elasticsearch.action.search.AbstractSearchAsyncAction.onShardFailure(AbstractSearchAsyncAction.java:549) ~[elasticsearch-8.2.2.jar:8.2.2]
at org.elasticsearch.action.search.AbstractSearchAsyncAction.onShardFailure(AbstractSearchAsyncAction.java:496) [elasticsearch-8.2.2.jar:8.2.2]
... 16 more
[2022-06-13T10:07:39,496][WARN ][r.suppressed ] [Prateeks-MacBook-Pro.local] path: /.kibana_task_manager/_search, params: {ignore_unavailable=true, index=.kibana_task_manager}
org.elasticsearch.action.search.SearchPhaseExecutionException: all shards failed
at org.elasticsearch.action.search.AbstractSearchAsyncAction.onPhaseFailure(AbstractSearchAsyncAction.java:730) [elasticsearch-8.2.2.jar:8.2.2]
at org.elasticsearch.action.search.AbstractSearchAsyncAction.executeNextPhase(AbstractSearchAsyncAction.java:417) [elasticsearch-8.2.2.jar:8.2.2]
at org.elasticsearch.action.search.AbstractSearchAsyncAction.onPhaseDone(AbstractSearchAsyncAction.java:762) [elasticsearch-8.2.2.jar:8.2.2]
at org.elasticsearch.action.search.AbstractSearchAsyncAction.onShardFailure(AbstractSearchAsyncAction.java:514) [elasticsearch-8.2.2.jar:8.2.2]
at org.elasticsearch.action.search.AbstractSearchAsyncAction$1.onFailure(AbstractSearchAsyncAction.java:348) [elasticsearch-8.2.2.jar:8.2.2]
at org.elasticsearch.action.ActionListener$Delegating.onFailure(ActionListener.java:92) [elasticsearch-8.2.2.jar:8.2.2]
at org.elasticsearch.action.ActionListenerResponseHandler.handleException(ActionListenerResponseHandler.java:48) [elasticsearch-8.2.2.jar:8.2.2]
at org.elasticsearch.action.search.SearchTransportService$ConnectionCountingHandler.handleException(SearchTransportService.java:642) [elasticsearch-8.2.2.jar:8.2.2]
at org.elasticsearch.transport.TransportService$UnregisterChildTransportResponseHandler.handleException(TransportService.java:1609) [elasticsearch-8.2.2.jar:8.2.2]
at org.elasticsearch.transport.TransportService$ContextRestoreResponseHandler.handleException(TransportService.java:1346) [elasticsearch-8.2.2.jar:8.2.2]
at org.elasticsearch.transport.TransportService$DirectResponseChannel.processException(TransportService.java:1468) [elasticsearch-8.2.2.jar:8.2.2]
at org.elasticsearch.transport.TransportService$DirectResponseChannel.sendResponse(TransportService.java:1443) [elasticsearch-8.2.2.jar:8.2.2]
at org.elasticsearch.transport.TaskTransportChannel.sendResponse(TaskTransportChannel.java:50) [elasticsearch-8.2.2.jar:8.2.2]
at org.elasticsearch.action.support.ChannelActionListener.onFailure(ChannelActionListener.java:47) [elasticsearch-8.2.2.jar:8.2.2]
at org.elasticsearch.action.ActionRunnable.onFailure(ActionRunnable.java:77) [elasticsearch-8.2.2.jar:8.2.2]
at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.onFailure(ThreadContext.java:761) [elasticsearch-8.2.2.jar:8.2.2]
at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:28) [elasticsearch-8.2.2.jar:8.2.2]
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) [?:?]
Caused by: org.elasticsearch.action.NoShardAvailableActionException: [Prateeks-MacBook-Pro.local][127.0.0.1:9300][indices:data/read/search[phase/query]]
at org.elasticsearch.action.search.AbstractSearchAsyncAction.onShardFailure(AbstractSearchAsyncAction.java:549) ~[elasticsearch-8.2.2.jar:8.2.2]
at org.elasticsearch.action.search.AbstractSearchAsyncAction.onShardFailure(AbstractSearchAsyncAction.java:496) [elasticsearch-8.2.2.jar:8.2.2]
... 16 more
[2022-06-13T10:07:39,514][WARN ][r.suppressed ] [Prateeks-MacBook-Pro.local] path: /.kibana_task_manager/_search, params: {ignore_unavailable=true, index=.kibana_task_manager}
org.elasticsearch.action.search.SearchPhaseExecutionException: all shards failed
at org.elasticsearch.action.search.AbstractSearchAsyncAction.onPhaseFailure(AbstractSearchAsyncAction.java:730) [elasticsearch-8.2.2.jar:8.2.2]
at org.elasticsearch.action.search.AbstractSearchAsyncAction.executeNextPhase(AbstractSearchAsyncAction.java:417) [elasticsearch-8.2.2.jar:8.2.2]
at org.elasticsearch.action.search.AbstractSearchAsyncAction.onPhaseDone(AbstractSearchAsyncAction.java:762) [elasticsearch-8.2.2.jar:8.2.2]
at org.elasticsearch.action.search.AbstractSearchAsyncAction.onShardFailure(AbstractSearchAsyncAction.java:514) [elasticsearch-8.2.2.jar:8.2.2]
at org.elasticsearch.action.search.AbstractSearchAsyncAction$1.onFailure(AbstractSearchAsyncAction.java:348) [elasticsearch-8.2.2.jar:8.2.2]
at org.elasticsearch.action.ActionListener$Delegating.onFailure(ActionListener.java:92) [elasticsearch-8.2.2.jar:8.2.2]
at org.elasticsearch.action.ActionListenerResponseHandler.handleException(ActionListenerResponseHandler.java:48) [elasticsearch-8.2.2.jar:8.2.2]
at org.elasticsearch.action.search.SearchTransportService$ConnectionCountingHandler.handleException(SearchTransportService.java:642) [elasticsearch-8.2.2.jar:8.2.2]
at org.elasticsearch.transport.TransportService$UnregisterChildTransportResponseHandler.handleException(TransportService.java:1609) [elasticsearch-8.2.2.jar:8.2.2]
at org.elasticsearch.transport.TransportService$ContextRestoreResponseHandler.handleException(TransportService.java:1346) [elasticsearch-8.2.2.jar:8.2.2]
at org.elasticsearch.transport.TransportService$DirectResponseChannel.processException(TransportService.java:1468) [elasticsearch-8.2.2.jar:8.2.2]
at org.elasticsearch.transport.TransportService$DirectResponseChannel.sendResponse(TransportService.java:1443) [elasticsearch-8.2.2.jar:8.2.2]
at org.elasticsearch.transport.TaskTransportChannel.sendResponse(TaskTransportChannel.java:50) [elasticsearch-8.2.2.jar:8.2.2]
at org.elasticsearch.action.support.ChannelActionListener.onFailure(ChannelActionListener.java:47) [elasticsearch-8.2.2.jar:8.2.2]
at org.elasticsearch.action.ActionRunnable.onFailure(ActionRunnable.java:77) [elasticsearch-8.2.2.jar:8.2.2]
at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.onFailure(ThreadContext.java:761) [elasticsearch-8.2.2.jar:8.2.2]
at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:28) [elasticsearch-8.2.2.jar:8.2.2]
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) [?:?]
Caused by: org.elasticsearch.action.NoShardAvailableActionException: [Prateeks-MacBook-Pro.local][127.0.0.1:9300][indices:data/read/search[phase/query]]
at org.elasticsearch.action.search.AbstractSearchAsyncAction.onShardFailure(AbstractSearchAsyncAction.java:549) ~[elasticsearch-8.2.2.jar:8.2.2]
at org.elasticsearch.action.search.AbstractSearchAsyncAction.onShardFailure(AbstractSearchAsyncAction.java:496) [elasticsearch-8.2.2.jar:8.2.2]
... 16 more
[2022-06-13T10:07:39,533][WARN ][r.suppressed ] [Prateeks-MacBook-Pro.local] path: /.kibana_task_manager/_search, params: {ignore_unavailable=true, index=.kibana_task_manager}
org.elasticsearch.action.search.SearchPhaseExecutionException: all shards failed
at org.elasticsearch.action.search.AbstractSearchAsyncAction.onPhaseFailure(AbstractSearchAsyncAction.java:730) [elasticsearch-8.2.2.jar:8.2.2]
at org.elasticsearch.action.search.AbstractSearchAsyncAction.executeNextPhase(AbstractSearchAsyncAction.java:417) [elasticsearch-8.2.2.jar:8.2.2]
at org.elasticsearch.action.search.AbstractSearchAsyncAction.onPhaseDone(AbstractSearchAsyncAction.java:762) [elasticsearch-8.2.2.jar:8.2.2]
at org.elasticsearch.action.search.AbstractSearchAsyncAction.onShardFailure(AbstractSearchAsyncAction.java:514) [elasticsearch-8.2.2.jar:8.2.2]
at org.elasticsearch.action.search.AbstractSearchAsyncAction$1.onFailure(AbstractSearchAsyncAction.java:348) [elasticsearch-8.2.2.jar:8.2.2]
at org.elasticsearch.action.ActionListener$Delegating.onFailure(ActionListener.java:92) [elasticsearch-8.2.2.jar:8.2.2]
at org.elasticsearch.action.ActionListenerResponseHandler.handleException(ActionListenerResponseHandler.java:48) [elasticsearch-8.2.2.jar:8.2.2]
at org.elasticsearch.action.search.SearchTransportService$ConnectionCountingHandler.handleException(SearchTransportService.java:642) [elasticsearch-8.2.2.jar:8.2.2]
at org.elasticsearch.transport.TransportService$UnregisterChildTransportResponseHandler.handleException(TransportService.java:1609) [elasticsearch-8.2.2.jar:8.2.2]
at org.elasticsearch.transport.TransportService$ContextRestoreResponseHandler.handleException(TransportService.java:1346) [elasticsearch-8.2.2.jar:8.2.2]
at org.elasticsearch.transport.TransportService$DirectResponseChannel.processException(TransportService.java:1468) [elasticsearch-8.2.2.jar:8.2.2]
at org.elasticsearch.transport.TransportService$DirectResponseChannel.sendResponse(TransportService.java:1443) [elasticsearch-8.2.2.jar:8.2.2]
at org.elasticsearch.transport.TaskTransportChannel.sendResponse(TaskTransportChannel.java:50) [elasticsearch-8.2.2.jar:8.2.2]
at org.elasticsearch.action.support.ChannelActionListener.onFailure(ChannelActionListener.java:47) [elasticsearch-8.2.2.jar:8.2.2]
at org.elasticsearch.action.ActionRunnable.onFailure(ActionRunnable.java:77) [elasticsearch-8.2.2.jar:8.2.2]
at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.onFailure(ThreadContext.java:761) [elasticsearch-8.2.2.jar:8.2.2]
at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:28) [elasticsearch-8.2.2.jar:8.2.2]
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) [?:?]
Caused by: org.elasticsearch.action.NoShardAvailableActionException: [Prateeks-MacBook-Pro.local][127.0.0.1:9300][indices:data/read/search[phase/query]]
at org.elasticsearch.action.search.AbstractSearchAsyncAction.onShardFailure(AbstractSearchAsyncAction.java:549) ~[elasticsearch-8.2.2.jar:8.2.2]
at org.elasticsearch.action.search.AbstractSearchAsyncAction.onShardFailure(AbstractSearchAsyncAction.java:496) [elasticsearch-8.2.2.jar:8.2.2]
... 16 more
字符串
3条答案
按热度按时间rjee0c151#
尝试通过将
ingest.geoip.downloader.enabled: false
添加到elasticsearch.yml
文件来禁用geoip索引下载。pes8fvy92#
如果您在本地进行测试,请尝试禁用以下功能
字符串
qxgroojn3#
对于使用Docker Compose的用户,将
ingest.geoip.downloader.enabled=false
添加到environment
:字符串
您还可以将本地文件Map到
elasticsearch.yml
文件:型
Source:GeoIpDownloader不能被elasticsearch.yml禁用