Elasticsearch安装、启动异常问题总结

安装es、kibana、ik分词器可参考:http://t.csdnimg.cn/59mEG

1. 内核过低


我们使⽤的是 centos6 ,其 linux 内核版本为 2.6 。⽽ Elasticsearch 的插件要求⾄少 3.5 以上版
本。不过没关系,我们禁 ⽤这个插件即可。
修改 elasticsearch.yml ⽂件,在最下⾯添加如下配置:
bootstrap.system_call_filter : false
然后重启

2. 权限不足:

java.nio.file.AccessDeniedException: /opt/bigmw/es/elasticsearch-7.8.0/config/elasticsearch.keystore

原因是权限不足,重新给该用户赋权:

chown -R elastic:elastic /opt/bigmw/es/elasticsearch-7.8.0/

实在不行就给config目录或elasticsearch.keystore文件单独赋权

3.⽂件权限不⾜


我们⽤的是 es ⽤户,⽽不是 root ,所以⽂件权限不⾜。
⾸先⽤ root ⽤户登录 , 然后修改配置⽂件 :
vim /etc/security/limits.conf
添加下⾯的内容:

* soft nofile 65536
* hard nofile 131072
* soft nproc 4096
* hard nproc 4096

4.线程数不够

1: max number of threads 1024 for user es is too low, increase to
at least 4096
这是线程数不够 继续修改配置
vim /etc/security/limits.d/20-nproc.conf
修改下⾯的内容:
soft nproc 1024
改为
soft nproc 4096

5.进程虚拟内存

3: max virtual memory areas vm.max_map_count 65530 likely too low,
increase to at least 262144
vm.max_map_count :限制⼀个进程可以拥有的 VMA( 虚拟内存区域 ) 的数量
继续修改配置⽂件, vim /etc/sysctl.conf 添加下⾯内容:
vm .max_map_count = 655360
修改完成之后在终端执⾏

然后执⾏命令

sysctl -p

6.未设置节点

the default discovery settings are unsuitable for production use; at
least one of discovery.seed_ho...
修改 elasticsearch.yml
cluster.name : my-application
node.name : node-1
cluster.initial_master_nodes : "node-1"

相关推荐
玹外之音1 天前
Spring AI + Elasticsearch 向量存储实战:从零构建智能文档检索系统
人工智能·spring·elasticsearch
小闫BI设源码1 天前
Elasticsearch面试必看:如何让客户端精准选择节点高效执行请求?
java·elasticsearch·面试宝典·深入解析
多加点辣也没关系1 天前
Git - 的安装与使用
大数据·git
醉颜凉1 天前
Elasticsearch 相关性评分核心解密:tie_breaker 参数作用原理与实战调优全解析
大数据·elasticsearch·jenkins
芯小途20261 天前
影视 AIGC 素材管理:改到第 108 版,为什么「块级去重」能把 TB 级素材压回百 GB(附估算脚本)
大数据·aigc
IanSkunk1 天前
视光中心建设复盘:从流程断层到组织能力的落地路径
大数据·人工智能
fanged1 天前
Yocto1--环境搭建和验证
大数据·搜索引擎·嵌入式
微石科技1 天前
社区卫生中心慢病管理怎么做?宁波微石科技智慧医康系统:一个平台管住趋势、随访、患者
大数据·人工智能·科技
大大大大晴天1 天前
K8S 在大数据里的真正价值:适用场景、收益边界与不适合的地方
大数据·云原生
跨境小彭1 天前
Temu半托管运营复盘:批量备货自动化实操解决方案
大数据·运维·自动化·跨境电商·temu