- 解决elasticsearch配置network.host: 0.0.0.0导致elasticsearch服务启动不成功的问题
- 异常1:网页192.168.5.145:9200无法进入
- 异常2:无法启动
bin
目录下elasticsearch脚本 - 异常3:无法效验elasticsearch压缩文档
- 异常4:[1]: max file descriptors [4096] for elasticsearch process is too low, increase to at least [65535]
- 异常5:[2]: max number of threads [3818] for user [admin] is too low, increase to at least [4096]
- 异常6:[3]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
- 异常7:[4]: 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
- 异常8:运行elasticsearch脚本出现大量的at org.elasticsearch.cluster.node.DiscoveryNodes$Builder.add(DiscoveryNodes.java:618) ~[elasticsearch-7.10.0.jar:7.10.0]
解决elasticsearch配置network.host: 0.0.0.0导致elasticsearch服务启动不成功的问题
异常1:网页192.168.5.145:9200无法进入
解决方法:
#关闭防火墙
systemctl stop firewalld.service #关闭防火墙
systemctl disable firewalld.service #关闭自启
systemctl status firewalld.service #查看防火墙状态
异常2:无法启动bin
目录下elasticsearch脚本
RuntimeException[Java version: 1.8.0….
解决方法:
下载较新版本的jdk
异常3:无法效验elasticsearch压缩文档
问题:-bash: shasum: 未找到命令….
解决方法:
yum -y install perl-Digest-SHA
异常4:[1]: max file descriptors [4096] for elasticsearch process is too low, increase to at least [65535]
解决办法:
转到root用户,vim /etc/security/limits.conf
* soft nofile 65535
* hard nofile 65535
异常5:[2]: max number of threads [3818] for user [admin] is too low, increase to at least [4096]
解决办法:
转到root用户,vim /etc/security/limits.conf
* soft nproc 4096
* hard nproc 4096
异常6:[3]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
解决办法:
转到root用户,vim /etc/sysctl.conf
vm.max_map_count=262144
异常7:[4]: 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
解决办法:
转到root用户,vim /opt/ela/config/elasticsearch.yml
cluster.initial_master_nodes: ["node-1"]
异常8:运行elasticsearch脚本出现大量的at org.elasticsearch.cluster.node.DiscoveryNodes$Builder.add(DiscoveryNodes.java:618) ~[elasticsearch-7.10.0.jar:7.10.0]
解决办法:
转到root用户,删除从节点上的data目录