Elasticsearch启动常见问题

错误信息:

解决办法:

文件夹赋予用户权限

[[email protected] elasticsearch]# chown -R eschenxi:esgroup /chenxi/software/elasticsearch #"/chenxi/software/elasticsearch" 为安装目录

错误信息:max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]

ERROR: [1] bootstrap checks failed

[1]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]

ERROR: Elasticsearch did not exit normally - check the logs at /chenxi/software/elasticsearch/logs/elasticsearch.log

解决办法

[[email protected] elasticsearch]# vim /etc/sysctl.conf

在文件末尾追加:vm.max_map_count=655360

保存后执行

[[email protected] elasticsearch]# sysctl -p

错误信息: [1]: max file descriptors [4096] for elasticsearch process is too low, increase to at least [65535]

ERROR: [5] bootstrap checks failed

[1]: max file descriptors [4096] for elasticsearch process is too low, increase to at least [65535]

[2]: max number of threads [1024] for user [es] is too low, increase to at least [4096]

[3]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]

[4]:  failed to install; check the logs and fix your configuration or disable system call filters at your own risk

[5]: the default discovery settings are unsuitable for production use; at least one of [discovery.seed_hosts, discovery.seed_providers, cluster.initial_master_nodes] must be configured

解决办法:

[[email protected] elasticsearch]# vim /etc/security/limits.conf

## 65535修改为65536

* soft nofile 65536

* hard nofile 65536

## 文件末尾追加

* soft nproc 4096

* hard nproc 4096

修改文件后保存并“关闭会话,重新登陆服务器”

错误信息:system call filters failed to install; check the logs and fix your configuration or disable system call filters at your own risk

ERROR: [2] bootstrap checks failed

[1]: system call filters failed to install; check the logs and fix your configuration or disable system call filters at your own risk

[2]: the default discovery settings are unsuitable for production use; at least one of [discovery.seed_hosts, discovery.seed_providers, cluster.initial_master_nodes] must be configured

解决办法:

##在elasticsearch.yml修改并添加配置项

[[email protected] elasticsearch]# vim config/elasticsearch.yml

# ----------------------------------- Memory -----------------------------------

#

# Lock the memory on startup:

# 取消注释并设置值为false

bootstrap.memory_lock: false

# 追加配置项

bootstrap.system_call_filter: false

错误信息: the default discovery settings are unsuitable for production use; at least one of

ERROR: [1] bootstrap checks failed

[1]: the default discovery settings are unsuitable for production use; at least one of [discovery.seed_hosts, discovery.seed_providers, cluster.initial_master_nodes] must be configured

解决办法:

##在elasticsearch.yml添加配置项

[[email protected] elasticsearch]# vim config/elasticsearch.yml

# --------------------------------- Discovery ----------------------------------

#

# Pass an initial list of hosts to perform discovery when this node is started:

# The default list of hosts is ["127.0.0.1", "[::1]"]

#

#discovery.seed_hosts: ["host1", "host2"]

#

# Bootstrap the cluster using an initial set of master-eligible nodes:

# 取消注释,并保留一个节点

cluster.initial_master_nodes: ["node-1"]

测试Es启动是否正常:

http://IP:9092

{

"name" : "chenxi",

"cluster_name" : "elasticsearch",

"cluster_uuid" : "_na_",

"version" : {

"number" : "7.6.0",

"build_flavor" : "default",

"build_type" : "tar",

"build_hash" : "7f634e9f44834fbc12724506cc1da681b0c3b1e3",

"build_date" : "2020-02-06T00:09:00.449973Z",

"build_snapshot" : false, "lucene_version" : "8.4.0",                                          "minimum_wire_compatibility_version" : "6.8.0",                                            "minimum_index_compatibility_version" : "6.0.0-beta1"

},

"tagline" : "You Know, for Search"

}

原文地址:https://www.cnblogs.com/chenxitag/p/12320868.html

时间: 2024-08-30 15:08:48

Elasticsearch启动常见问题的相关文章

Tomcat服务器启动常见问题

参考:http://www.cnblogs.com/xdp-gacl/p/3729033.html 学习web开发,需要先安装一台web服务器,然后再在web服务器中开发相应的web资源,供用户使用浏览器访问. 一.搭建JavaWeb应用开发环境——Tomcat服务器 1.1.疑问:学习web开发,为什么必须要先装一个WEB服务器? 在本地计算机上随便创建一个web页面,用户是无法访问到的,但是如果启动tomcat服务器,把web页面放在tomcat服务器中,用户就可以访问了.这说明什么问题?

ELK 学习笔记之 elasticsearch启动时Warning解决办法

elasticsearch启动时Warning解决办法: 转载:http://www.dajiangtai.com/community/18136.do?origin=csdn-geek&dt=1214 问题一: [2016-11-06T16:27:21,712][WARN ][o.e.b.JNANatives ] unable to install syscall filter: Java.lang.UnsupportedOperationException: seccomp unavaila

Linux安装ElasticSearch启动报错的解决方法

Linux安装ElasticSearch后,ElasticSearch是不能用root用户启动的,以root用户启动会报错Refer to the log for complete error details,出现这种情况该如何解决呢?下面小编就为大家带来Linux安装ElasticSearch启动报错的解决方法,一起去看看吧 今天就出现的异常问题专门解决一下.你安装好ElasticSearch以后,在启动的时候需要注意的问题是,ElasticSearch是不能用root用户启动的(这是根据el

ElasticSearch 启动时加载 Analyzer 源码分析

ElasticSearch 启动时加载 Analyzer 源码分析 本文介绍 ElasticSearch启动时如何创建.加载Analyzer,主要的参考资料是Lucene中关于Analyzer官方文档介绍.ElasticSearch6.3.2源码中相关类:AnalysisModule.AnalysisPlugin.AnalyzerProvider.各种Tokenizer类和它们对应的TokenizerFactory.另外还参考了一个具体的基于ElasticSearch采用HanLP进行中文分词的

Elasticsearch启动、停止脚本

注:本文出自博主:chloneda Elasticsearch官网 构建Elasticsearch启动脚本 start_es.sh. #!/bin/bash export ES_HOME=xxx su elastic -c "sh ${ES_HOME}/bin/elasticsearch -d -p ${ES_HOME}/pid" 参数说明: su:登录用户. elastic:部署Elasticsearch用户,避免root用户而无法启动. c:c参数后跟具体命令. d:Elastic

Elasticsearch 5常见问题解决方案

安装运行 1.前置安装java8 jdk-8u112-linux-x64.rpm 下载地址:http://www.oracle.com/technetwork/java/javase/downloads/index.html 2.下载 wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.1.1.zip 3.解压 unzip elasticsearch-5.1.1.zip 4.运行 ./bin/elas

总结遇到的elasticsearch启动失败的几种情况及解决

1.使用root用户启动失败 在有一次搭建elasticsearch的时候,使用systemctl启动elasticsearch失败,然后在bin目录下面去使用启动脚本启动,发现报错不能用root用户启动,报"Caused by: java.lang.RuntimeException: can not run elasticsearch as root": [[email protected] bin]# ./elasticsearch [2017-12-20T17:01:47,922

Elasticsearch启动分析与问题解决-bootstrap checks

[TOC] 0 说明 使用的es版本为5.6,Linux版本为CentOs 6.5. 1 Elasticsearch bootstrap checks 1.1 开发环境 如果在es的配置中没有配置network.host来指定一个可用的IP地址的话,默认情况下,就绑定到localhost上,此时es会认为用户只是在开发环境下使用es,基于开箱即用的原则,虽然es此时也会进行bootstrap checks,来检查用户的配置是否与es设定的安全值相匹配,如下: 如果匹配,则不会有warnning信

elasticsearch启动常见错误

elasticsearch 5.0 安装过程中遇到了一些问题,通过查找资料几乎都解决掉了,这里简单记录一下 ,供以后查阅参考,也希望可以帮助遇到同样问题的你. 问题一:警告提示 [2016-11-06T16:27:21,712][WARN ][o.e.b.JNANatives ] unable to install syscall filter: java.lang.UnsupportedOperationException: seccomp unavailable: requires kern