ELK搭建过程当中出现的问题与解决方法汇总

搭建过程当中出现的问题

elasticsearch启动过程当中报错【1】html

ERROR: [1] bootstrap checks failed
[1]: the default discovery settings are unsuitable for production use; at least one of [discovery.seed_hosts, d                                                                                                                           iscovery.seed_providers, cluster.initial_master_nodes] must be configured
[2019-06-03T07:05:44,761][INFO ][o.e.n.Node               ] [hz] stopping ...
[2019-06-03T07:05:44,788][INFO ][o.e.n.Node               ] [hz] stopped
[2019-06-03T07:05:44,788][INFO ][o.e.n.Node               ] [hz] closing ...
[2019-06-03T07:05:44,801][INFO ][o.e.n.Node               ] [hz] closed
[2019-06-03T07:05:44,804][INFO ][o.e.x.m.p.NativeController] [hz] Native controller process has stopped - no ne                                                                                                                           w native processes can be started

解决办法node

#修改config/elasticsearch.yml下约第23行,放开node.name注释,可更更名称
node.name: node-1

elasticsearch启动过程当中报错【2】git

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

解决办法github

#打开第68行注释,ip替换host1等,多节点请添加多个ip地址,单节点可写按默认来
#配置如下三者,最少其一
#[discovery.seed_hosts, discovery.seed_providers, cluster.initial_master_nodes]
cluster.initial_master_nodes: ["node-1"] #这里的node-1为node-name配置的值

###### ###### ###### ###### ###### ###### ###### ######

没法经过外部ip访问elasticsearchbootstrap

解决办法bash

#修改config/elasticsearch.yml下约第55行,修改成当前es地址或0.0.0.0
network.host: 0.0.0.0

###### ###### ###### ###### ###### ###### ###### ######

Failed to clear cache for realms [[]]

暂无解决办法,官方github上已经有人提issue了elasticsearch

###### ###### ###### ###### ###### ###### ###### ######

[status][plugin:spaces@7.1.1] Status changed from yellow to green - Ready

这个问题只会出如今单体ELK中,无需理会ide

###### ###### ###### ###### ###### ###### ###### ######

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

解决办法:ui

临时解决办法:切换root用户执行以下命令spa

# sysctl -w vm.max_map_count=262144

永久解决办法:在 /etc/sysctl.conf文件最后添加一行

# echo "vm.max_map_count=262144" > /etc/sysctl.conf
# sysctl -p  #使修改当即生效

查看修改结果:

# sysctl -a|grep vm.max_map_count

显示:

vm.max_map_count = 262144

###### ###### ###### ###### ###### ###### ###### ######

ERROR: bootstrap checks failed
memory locking requested for elasticsearch process but memory is not locked

这是由于设置了锁定内存参数bootstrap.memory_lock=true,这里给出本人以前的笔记连接http://www.javashuo.com/article/p-rahqeszd-bz.html

未完待续

相关文章
相关标签/搜索