一、elasticsearch

1、服务正常启动,但不能正常访问

[root@linux-node1 elasticsearch]# systemctl start elasticsearch
[root@linux-node1 elasticsearch]# systemctl status elasticsearch
● elasticsearch.service - Elasticsearch
   Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; disabled; vendor preset: disabled)
   Active: active (running) since 五 -- :: CST; 5s ago
     Docs: http://www.elastic.co
 Main PID:  (java)
   CGroup: /system.slice/elasticsearch.service
           ├─ /bin/java -Xms1g -Xmx1g -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction= -XX:+UseCM...
           └─ /usr/share/elasticsearch/modules/x-pack-ml/platform/linux-x86_64/bin/controller

8月  :: linux-node1 systemd[]: Started Elasticsearch.
8月  :: linux-node1 systemd[]: Starting Elasticsearch...
8月  :: linux-node1 elasticsearch[]: Java HotSpot(TM) -Bit Server VM warning: Option UseConcMar...ase.
Hint: Some lines were ellipsized, use -l to show in full

日志信息[root@linux-node1 ~]# cat /var/log/elasticsearch/suffergtf.log [2018-08-31T11:29:02,215][WARN ][o.e.b.JNANatives         ] Unable to lock JVM Memory: error=12, reason=无法分配内存[2018-08-31T11:29:02,218][WARN ][o.e.b.JNANatives         ] This can result in part of the JVM being swapped out.[2018-08-31T11:29:02,219][WARN ][o.e.b.JNANatives         ] Increase RLIMIT_MEMLOCK, soft limit: 65536, hard limit: 65536[2018-08-31T11:29:02,219][WARN ][o.e.b.JNANatives         ] These can be adjusted by modifying /etc/security/limits.conf, for example:     # allow user 'elasticsearch' mlockall    elasticsearch soft memlock unlimited    elasticsearch hard memlock unlimited[2018-08-31T11:29:02,219][WARN ][o.e.b.JNANatives         ] If you are logged in interactively, you will have to re-login for the new limits to take effect.[2018-08-31T11:29:02,844][INFO ][o.e.n.Node               ] [linux-node1] initializing ...[2018-08-31T11:29:03,036][INFO ][o.e.e.NodeEnvironment    ] [linux-node1] using [1] data paths, mounts [[/ (rootfs)]], net usable_space [15.3gb], net total_space [17.7gb], types [rootfs][2018-08-31T11:29:03,036][INFO ][o.e.e.NodeEnvironment    ] [linux-node1] heap size [1015.6mb], compressed ordinary object pointers [true][2018-08-31T11:29:03,038][INFO ][o.e.n.Node               ] [linux-node1] node name [linux-node1], node ID [8HbHSciQTHqiNpgfM2osEQ][2018-08-31T11:29:03,038][INFO ][o.e.n.Node               ] [linux-node1] version[6.4.0], pid[1003], build[default/rpm/595516e/2018-08-17T23:18:47.308994Z], OS[Linux/3.10.0-514.el7.x86_64/amd64], JVM["Oracle Corporation"/Java HotSpot(TM) 64-Bit Server VM/10.0.1/10.0.1+10][2018-08-31T11:29:03,038][INFO ][o.e.n.Node               ] [linux-node1] JVM arguments [-Xms1g, -Xmx1g, -XX:+UseConcMarkSweepGC, -XX:CMSInitiatingOccupancyFraction=75, -XX:+UseCMSInitiatingOccupancyOnly, -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.lXjdTISW, -XX:+HeapDumpOnOutOfMemoryError, -XX:HeapDumpPath=/var/lib/elasticsearch, -XX:ErrorFile=/var/log/elasticsearch/hs_err_pid%p.log, -Xlog:gc*,gc+age=trace,safepoint:file=/var/log/elasticsearch/gc.log:utctime,pid,tags:filecount=32,filesize=64m, -Djava.locale.providers=COMPAT, -XX:UseAVX=2, -Des.path.home=/usr/share/elasticsearch, -Des.path.conf=/etc/elasticsearch, -Des.distribution.flavor=default, -Des.distribution.type=rpm][2018-08-31T11:29:07,406][INFO ][o.e.p.PluginsService     ] [linux-node1] loaded module [aggs-matrix-stats][2018-08-31T11:29:07,406][INFO ][o.e.p.PluginsService     ] [linux-node1] loaded module [analysis-common][2018-08-31T11:29:07,407][INFO ][o.e.p.PluginsService     ] [linux-node1] loaded module [ingest-common][2018-08-31T11:29:07,407][INFO ][o.e.p.PluginsService     ] [linux-node1] loaded module [lang-expression][2018-08-31T11:29:07,407][INFO ][o.e.p.PluginsService     ] [linux-node1] loaded module [lang-mustache][2018-08-31T11:29:07,407][INFO ][o.e.p.PluginsService     ] [linux-node1] loaded module [lang-painless][2018-08-31T11:29:07,407][INFO ][o.e.p.PluginsService     ] [linux-node1] loaded module [mapper-extras][2018-08-31T11:29:07,407][INFO ][o.e.p.PluginsService     ] [linux-node1] loaded module [parent-join][2018-08-31T11:29:07,407][INFO ][o.e.p.PluginsService     ] [linux-node1] loaded module [percolator][2018-08-31T11:29:07,407][INFO ][o.e.p.PluginsService     ] [linux-node1] loaded module [rank-eval][2018-08-31T11:29:07,407][INFO ][o.e.p.PluginsService     ] [linux-node1] loaded module [reindex][2018-08-31T11:29:07,407][INFO ][o.e.p.PluginsService     ] [linux-node1] loaded module [repository-url][2018-08-31T11:29:07,407][INFO ][o.e.p.PluginsService     ] [linux-node1] loaded module [transport-netty4][2018-08-31T11:29:07,408][INFO ][o.e.p.PluginsService     ] [linux-node1] loaded module [tribe][2018-08-31T11:29:07,408][INFO ][o.e.p.PluginsService     ] [linux-node1] loaded module [x-pack-core][2018-08-31T11:29:07,408][INFO ][o.e.p.PluginsService     ] [linux-node1] loaded module [x-pack-deprecation][2018-08-31T11:29:07,408][INFO ][o.e.p.PluginsService     ] [linux-node1] loaded module [x-pack-graph][2018-08-31T11:29:07,408][INFO ][o.e.p.PluginsService     ] [linux-node1] loaded module [x-pack-logstash][2018-08-31T11:29:07,408][INFO ][o.e.p.PluginsService     ] [linux-node1] loaded module [x-pack-ml][2018-08-31T11:29:07,409][INFO ][o.e.p.PluginsService     ] [linux-node1] loaded module [x-pack-monitoring][2018-08-31T11:29:07,409][INFO ][o.e.p.PluginsService     ] [linux-node1] loaded module [x-pack-rollup][2018-08-31T11:29:07,409][INFO ][o.e.p.PluginsService     ] [linux-node1] loaded module [x-pack-security][2018-08-31T11:29:07,409][INFO ][o.e.p.PluginsService     ] [linux-node1] loaded module [x-pack-sql][2018-08-31T11:29:07,410][INFO ][o.e.p.PluginsService     ] [linux-node1] loaded module [x-pack-upgrade][2018-08-31T11:29:07,410][INFO ][o.e.p.PluginsService     ] [linux-node1] loaded module [x-pack-watcher][2018-08-31T11:29:07,410][INFO ][o.e.p.PluginsService     ] [linux-node1] no plugins loaded[2018-08-31T11:29:18,133][INFO ][o.e.x.s.a.s.FileRolesStore] [linux-node1] parsed [0] roles from file [/etc/elasticsearch/roles.yml][2018-08-31T11:29:19,562][INFO ][o.e.x.m.j.p.l.CppLogMessageHandler] [controller/1056] [Main.cc@109] controller (64 bit): Version 6.4.0 (Build cf8246175efff5) Copyright (c) 2018 Elasticsearch BV[2018-08-31T11:29:20,568][DEBUG][o.e.a.ActionModule       ] Using REST wrapper from plugin org.elasticsearch.xpack.security.Security[2018-08-31T11:29:21,310][INFO ][o.e.d.DiscoveryModule    ] [linux-node1] using discovery type [zen][2018-08-31T11:29:24,639][INFO ][o.e.n.Node               ] [linux-node1] initialized[2018-08-31T11:29:24,640][INFO ][o.e.n.Node               ] [linux-node1] starting ...[2018-08-31T11:29:25,457][INFO ][o.e.t.TransportService   ] [linux-node1] publish_address {192.168.127.201:9300}, bound_addresses {[::]:9300}[2018-08-31T11:29:25,526][INFO ][o.e.b.BootstrapChecks    ] [linux-node1] bound or publishing to a non-loopback address, enforcing bootstrap checks[2018-08-31T11:29:25,544][ERROR][o.e.b.Bootstrap          ] [linux-node1] node validation exception[1] bootstrap checks failed[1]: memory locking requested for elasticsearch process but memory is not locked[2018-08-31T11:29:25,560][INFO ][o.e.n.Node               ] [linux-node1] stopping ...[2018-08-31T11:29:25,627][INFO ][o.e.n.Node               ] [linux-node1] stopped[2018-08-31T11:29:25,628][INFO ][o.e.n.Node               ] [linux-node1] closing ...[2018-08-31T11:29:25,681][INFO ][o.e.n.Node               ] [linux-node1] closed[2018-08-31T11:29:25,686][INFO ][o.e.x.m.j.p.NativeController] Native controller process has stopped - no new native processes can be started

处理[root@linux-node1 ~]# vim /etc/systemd/system.conf    #####修改如下行,即可解决error报错DefaultLimitNOFILE=65536DefaultLimitNPROC=32000DefaultLimitMEMLOCK=infinity

[root@linux-node1 elasticsearch]# vim /etc/security/limits.conf    #####添加如下行,即可解决warn警告

# allow user 'elasticsearch' mlockallelasticsearch soft memlock unlimitedelasticsearch hard memlock unlimited

ELK踩过的各种坑 6.4版本的更多相关文章

  1. 三分之一的程序猿之社交类app踩过的那些坑

    三分之一的程序猿之社交类app踩过的那些坑 万众创新,全民创业.哪怕去年陌生人社交不管融资与否都倒闭了不知道多少家,但是依然有很多陌生人社交应用层出不穷的冒出来.各种脑洞大开,让人拍案叫起. 下面我们 ...

  2. 【Fine原创】JMeter分布式测试中踩过的那些坑

    最近因为项目需要,研究了性能测试的相关内容,并且最终选用了jmeter这一轻量级开源工具.因为一直使用jmeter的GUI模式进行脚本设计,到测试执行阶段工具本身对资源的过量消耗给性能测试带来了瓶颈, ...

  3. 与webview打交道中踩过的那些坑

    随着HTML5被越来越多的用到web APP的开发当中,webview这一个神器便日渐凸显出重要地位.简要的说,webview能够在移动应用中开辟出一个窗口,在里面显示html页面,css以及js代码 ...

  4. 美团在Redis上踩过的一些坑-目录(本人非美团)(转)

    来自:http://carlosfu.iteye.com/blog/2254154 分为5个部分:    一.周期性出现connect timeout    二.redis bgrewriteaof问 ...

  5. 安装python爬虫scrapy踩过的那些坑和编程外的思考

    这些天应朋友的要求抓取某个论坛帖子的信息,网上搜索了一下开源的爬虫资料,看了许多对于开源爬虫的比较发现开源爬虫scrapy比较好用.但是以前一直用的java和php,对python不熟悉,于是花一天时 ...

  6. [原创]阿里云RocketMQ踩过的哪些坑

    由于公司的最近开始使用RocketMQ来做支付业务处理, 便开启了学习阿里云RocketMQ的学习与实践之路, 其中踩了不少的坑, 大部份是由于没有仔细查看阿里云的技术文档而踩的坑. 但是有一个非常大 ...

  7. Spring Cloud 升级最新 Finchley 版本,踩了所有的坑!

    Spring Boot 2.x 已经发布了很久,现在 Spring Cloud 也发布了 基于 Spring Boot 2.x 的 Finchley 版本,现在一起为项目做一次整体框架升级. 升级前 ...

  8. Redis上踩过的一些坑

    来自: http://blog.csdn.net//chenleixing/article/details/50530419 上上周和同事(龙哥)参加了360组织的互联网技术训练营第三期,美团网的DB ...

  9. Android Camera开发经验总结以及踩过的那些坑

    写在开头 需求方:上传试卷的时候,用户自己拍的照片有很多问题.如:不清晰.图片歪了.错误图片等.我们要是能够对拍摄照片进行识别处理就好了,能够裁切矫正就更好了,最好可以像二维码扫描一样,直接识别处理- ...

随机推荐

  1. 00 | QPS

    每秒查询率 QPS Query Per Second 某个查询服务器 在 规定时间内 处理了多少流量 对应的fetches/sec,即每秒响应请求数,就是最大吞吐量 原理:每天80%的访问集中在20% ...

  2. C语言中位运算符异或“∧”的作用

    异或运算符∧也称XOR运算符.它的规则是若参加运算的两个二进位同号,则结果为0(假):异号则为1(真).即0∧=,∧=,∧=.如: 即071∧,结果为023(八进制数). “异或”的意思是判断两个相应 ...

  3. dream(2018.10.17)

    一句话题意:讲什么题意啊,见usaco2017feb silver的T1,一模一样,就是牛和鸡的读入顺序反过来了一下,数据范围大了10倍,卡掉了\(O(n^2)\)的算法. 数据范围: 对于 30%的 ...

  4. Python 去除列表中重复的元素(转载http://blog.csdn.net/zhengnz/article/details/6265282)

    比较容易记忆的是用内置的set l1 = ['b','c','d','b','c','a','a']l2 = list(set(l1))print l2   还有一种据说速度更快的,没测试过两者的速度 ...

  5. 洛谷1005(dp)

    1.不要贪,缩小区间去dp就好. 2.预处理指数. 3.__int128可还行. #include <cstdio> #include <cctype> #include &l ...

  6. 101 to 010 Atcoder CODE FESTIVAL 2017 qual B D

    https://www.luogu.org/problemnew/show/AT3575 题解 根本不会.. 错误记录:缺少32行的转移.显然这个转移是必要的 #include<cstdio&g ...

  7. 101 Symmetric Tree 判断一颗二叉树是否是镜像二叉树

    给定一个二叉树,检查它是否是它自己的镜像(即,围绕它的中心对称).例如,这个二叉树 [1,2,2,3,4,4,3] 是对称的.    1   / \  2   2 / \ / \3  4 4  3但是 ...

  8. python学习之序列化

    序列化:不同编程语言之间传递对象需要序列化成标准格式,有XML /JSON,json格式化为字符串,UTF-8编码,速度快,切实标准格式.JSON 和 Python内置的数据类型对应如下: JSON ...

  9. php设计模式学习之单例模式

    某些应用程序资源是独占的,因为有且只有一个此类型的资源.例如,通过数据库句柄到数据库的连接是独占的.您希望在应用程序中共享数据库句柄,因为在保持连接打开或关闭时,它是一种开销,在获取单个页面的过程中更 ...

  10. php 几个比较实用的函数

    最近在看代码,发现以下是几个比较实用的函数. 1,取客户端IP 查看复制打印? function getOnlineIp() { $strOnlineIp = ""; if(get ...