Elasticsearch异常信息解决

错误信息描述:

[elsearch@master bin]$ ./elasticsearch
[2019-06-20T03:10:49,383][INFO ][o.e.e.NodeEnvironment    ] [es1] using [1] data paths, mounts [[/ (rootfs)]], net usable_space [11.2gb], net total_space [16.9gb], types [rootfs]
[2019-06-20T03:10:49,417][INFO ][o.e.e.NodeEnvironment    ] [es1] heap size [1007.3mb], compressed ordinary object pointers [true]
[2019-06-20T03:10:49,419][INFO ][o.e.n.Node               ] [es1] node name [es1], node ID [Qb4vg-uGQLS9vbvcIu_NNw]
[2019-06-20T03:10:49,420][INFO ][o.e.n.Node               ] [es1] version[6.8.0], pid[3118], build[default/tar/65b6179/2019-05-15T20:06:13.172855Z], OS[Linux/3.10.0-693.el7.x86_64/amd64], JVM[Oracle Corporation/Java HotSpot(TM) 64-Bit Server VM/1.8.0_91/25.91-b14]
[2019-06-20T03:10:49,420][INFO ][o.e.n.Node               ] [es1] JVM arguments [-Xms1g, -Xmx1g, -XX:+UseConcMarkSweepGC, -XX:CMSInitiatingOccupancyFraction=75, -XX:+UseCMSInitiatingOccupancyOnly, -Des.networkaddress.cache.ttl=60, -Des.networkaddress.cache.negative.ttl=10, -XX:+AlwaysPreTouch, -Xss1m, -Djava.awt.headless=true, -Dfile.encoding=UTF-8, -Djna.nosys=true, -XX:-OmitStackTraceInFastThrow, -Dio.netty.noUnsafe=true, -Dio.netty.noKeySetOptimization=true, -Dio.netty.recycler.maxCapacityPerThread=0, -Dlog4j.shutdownHookEnabled=false, -Dlog4j2.disable.jmx=true, -Djava.io.tmpdir=/tmp/elasticsearch-6704401253880916791, -XX:+HeapDumpOnOutOfMemoryError, -XX:HeapDumpPath=data, -XX:ErrorFile=logs/hs_err_pid%p.log, -XX:+PrintGCDetails, -XX:+PrintGCDateStamps, -XX:+PrintTenuringDistribution, -XX:+PrintGCApplicationStoppedTime, -Xloggc:logs/gc.log, -XX:+UseGCLogFileRotation, -XX:NumberOfGCLogFiles=32, -XX:GCLogFileSize=64m, -Des.path.home=/opt/elasticsearch-6.8.0, -Des.path.conf=/opt/elasticsearch-6.8.0/config, -Des.distribution.flavor=default, -Des.distribution.type=tar]
[2019-06-20T03:11:14,037][INFO ][o.e.p.PluginsService     ] [es1] loaded module [aggs-matrix-stats]
[2019-06-20T03:11:14,037][INFO ][o.e.p.PluginsService     ] [es1] loaded module [analysis-common]
[2019-06-20T03:11:14,037][INFO ][o.e.p.PluginsService     ] [es1] loaded module [ingest-common]
[2019-06-20T03:11:14,037][INFO ][o.e.p.PluginsService     ] [es1] loaded module [ingest-geoip]
[2019-06-20T03:11:14,037][INFO ][o.e.p.PluginsService     ] [es1] loaded module [ingest-user-agent]
[2019-06-20T03:11:14,037][INFO ][o.e.p.PluginsService     ] [es1] loaded module [lang-expression]
[2019-06-20T03:11:14,038][INFO ][o.e.p.PluginsService     ] [es1] loaded module [lang-mustache]
[2019-06-20T03:11:14,038][INFO ][o.e.p.PluginsService     ] [es1] loaded module [lang-painless]
[2019-06-20T03:11:14,038][INFO ][o.e.p.PluginsService     ] [es1] loaded module [mapper-extras]
[2019-06-20T03:11:14,038][INFO ][o.e.p.PluginsService     ] [es1] loaded module [parent-join]
[2019-06-20T03:11:14,038][INFO ][o.e.p.PluginsService     ] [es1] loaded module [percolator]
[2019-06-20T03:11:14,038][INFO ][o.e.p.PluginsService     ] [es1] loaded module [rank-eval]
[2019-06-20T03:11:14,038][INFO ][o.e.p.PluginsService     ] [es1] loaded module [reindex]
[2019-06-20T03:11:14,038][INFO ][o.e.p.PluginsService     ] [es1] loaded module [repository-url]
[2019-06-20T03:11:14,038][INFO ][o.e.p.PluginsService     ] [es1] loaded module [transport-netty4]
[2019-06-20T03:11:14,038][INFO ][o.e.p.PluginsService     ] [es1] loaded module [tribe]
[2019-06-20T03:11:14,038][INFO ][o.e.p.PluginsService     ] [es1] loaded module [x-pack-ccr]
[2019-06-20T03:11:14,038][INFO ][o.e.p.PluginsService     ] [es1] loaded module [x-pack-core]
[2019-06-20T03:11:14,039][INFO ][o.e.p.PluginsService     ] [es1] loaded module [x-pack-deprecation]
[2019-06-20T03:11:14,039][INFO ][o.e.p.PluginsService     ] [es1] loaded module [x-pack-graph]
[2019-06-20T03:11:14,039][INFO ][o.e.p.PluginsService     ] [es1] loaded module [x-pack-ilm]
[2019-06-20T03:11:14,039][INFO ][o.e.p.PluginsService     ] [es1] loaded module [x-pack-logstash]
[2019-06-20T03:11:14,039][INFO ][o.e.p.PluginsService     ] [es1] loaded module [x-pack-ml]
[2019-06-20T03:11:14,039][INFO ][o.e.p.PluginsService     ] [es1] loaded module [x-pack-monitoring]
[2019-06-20T03:11:14,039][INFO ][o.e.p.PluginsService     ] [es1] loaded module [x-pack-rollup]
[2019-06-20T03:11:14,040][INFO ][o.e.p.PluginsService     ] [es1] loaded module [x-pack-security]
[2019-06-20T03:11:14,040][INFO ][o.e.p.PluginsService     ] [es1] loaded module [x-pack-sql]
[2019-06-20T03:11:14,041][INFO ][o.e.p.PluginsService     ] [es1] loaded module [x-pack-upgrade]
[2019-06-20T03:11:14,041][INFO ][o.e.p.PluginsService     ] [es1] loaded module [x-pack-watcher]
[2019-06-20T03:11:14,041][INFO ][o.e.p.PluginsService     ] [es1] no plugins loaded
[2019-06-20T03:11:22,437][INFO ][o.e.x.s.a.s.FileRolesStore] [es1] parsed [0] roles from file [/opt/elasticsearch-6.8.0/config/roles.yml]
[2019-06-20T03:11:24,359][INFO ][o.e.x.m.p.l.CppLogMessageHandler] [es1] [controller/3311] [Main.cc@109] controller (64 bit): Version 6.8.0 (Build e6cf25e2acc5ec) Copyright (c) 2019 Elasticsearch BV
[2019-06-20T03:11:25,152][DEBUG][o.e.a.ActionModule       ] [es1] Using REST wrapper from plugin org.elasticsearch.xpack.security.Security
[2019-06-20T03:11:25,899][INFO ][o.e.d.DiscoveryModule    ] [es1] using discovery type [zen] and host providers [settings]
[2019-06-20T03:11:28,426][INFO ][o.e.n.Node               ] [es1] initialized
[2019-06-20T03:11:28,427][INFO ][o.e.n.Node               ] [es1] starting ...
[2019-06-20T03:11:30,561][INFO ][o.e.t.TransportService   ] [es1] publish_address {192.168.199.10:9300}, bound_addresses {[::]:9300}
[2019-06-20T03:11:30,587][INFO ][o.e.b.BootstrapChecks    ] [es1] bound or publishing to a non-loopback address, enforcing bootstrap checks
ERROR: [3] bootstrap checks failed
[1]: max file descriptors [4096] for elasticsearch process is too low, increase to at least [65535]
[2]: max number of threads [3884] for user [elsearch] 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]
[2019-06-20T03:11:30,606][INFO ][o.e.n.Node               ] [es1] stopping ...
[2019-06-20T03:11:30,640][INFO ][o.e.n.Node               ] [es1] stopped
[2019-06-20T03:11:30,640][INFO ][o.e.n.Node               ] [es1] closing ...
[2019-06-20T03:11:30,669][INFO ][o.e.n.Node               ] [es1] closed
[elsearch@master bin]$ 

解决方法:

错误【1】:修改/etc/security/limits.conf文件内容,具体内容如下:

# 配置属性

[elsearch@master ~] $ sudo vi /etc/security/limits.conf

# 添加内容如下

*        hard        nofile      65536

*        soft        nofile      65536

# 保存并退出,需要退出当前用户后再登录才能生效;

错误【2】:修改/etc/security/limits.d/20-nproc.conf文件,具体操作内容如下:

# 配置属性

[elsearch@master ~] $ sudo vi /etc/security/limits.d/20-nproc.conf

# 添加内容如下:

*        sofa        nproc        4096

# 保存并退出,需要退出当前用户后再登录才能生效;

错误【3】:修改/etc/sysctl.conf文件,具体操作如下:

# 配置属性

[elsearch@master ~] $ sudo vi /etc/sysctl.conf

# 添加内容如下:

vm.max_map_count=262144

# 保存并退出,然后使用sysctl命令是配置属性立即生效,具体操作如下:

[elsearch@master ~] $ sudo sysctl -p

错误信息(二):

elsearch is not in thw sudoers file.This incident will be reported.

解决方法:

在root用户下执行:[root@master ~] $ visudo

在文本中找到:root     ALL=(ALL)     ALL,在其下方添加:

elsearch     ALL=(ALL)     ALL

保存退出,登录用户 elsearch继续操作;

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值