`
gaojingsong
  • 浏览: 1154708 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
文章分类
社区版块
存档分类
最新评论

【elasticsearch-5X安装步骤(二)】

阅读更多

 

 

ERROR: bootstrap checks failed

max file descriptors [1024] for elasticsearch process is too low, increase to at least [65536]

处理方案

[root@node1 ~]# vi /etc/security/limits.conf

# /etc/security/limits.conf

hadoop  soft nofile 65536

hadoop  hard nofile 65536

[root@node1 ~]# sysctl -p

[hadoop@node1 ~]$ ulimit -Hn

65536

 

 

Last login: Sat Feb 25 12:45:11 2017

[root@node1 ~]# su - hadoop

[hadoop@node1 ~]$ cd /opt/es5.0/elasticsearch-5.1.2

[hadoop@node1 elasticsearch-5.1.2]$ cd bin/

[hadoop@node1 bin]$ sh ../../init_env.sh 

../../init_env.sh: line 9: ulimit: open files: cannot modify limit: Operation not permitted

[hadoop@node1 bin]$ cat ../../init_env.sh 

#!/bin/bash

 

# add by gaojingsong

# init env

JAVA_HOME=/opt/es5.0/jdk1.8.0_111

PATH=$PATH:$JAVA_HOME/bin

export JAVA_HOME PATH

 

ulimit -n  262144

[hadoop@node1 bin]$ ulimit -n  262144

-bash: ulimit: open files: cannot modify limit: Operation not permitted

[hadoop@node1 bin]$ ./elasticsearch

[2017-02-25T12:48:32,075][WARN ][o.e.b.JNANatives         ] unable to install syscall filter: 

java.lang.UnsupportedOperationException: seccomp unavailable: requires kernel 3.5+ with CONFIG_SECCOMP and CONFIG_SECCOMP_FILTER compiled in

        at org.elasticsearch.bootstrap.Seccomp.linuxImpl(Seccomp.java:349) ~[elasticsearch-5.1.2.jar:5.1.2]

        at org.elasticsearch.bootstrap.Seccomp.init(Seccomp.java:630) ~[elasticsearch-5.1.2.jar:5.1.2]

        at org.elasticsearch.bootstrap.JNANatives.trySeccomp(JNANatives.java:215) [elasticsearch-5.1.2.jar:5.1.2]

        at org.elasticsearch.bootstrap.Natives.trySeccomp(Natives.java:99) [elasticsearch-5.1.2.jar:5.1.2]

        at org.elasticsearch.bootstrap.Bootstrap.initializeNatives(Bootstrap.java:105) [elasticsearch-5.1.2.jar:5.1.2]

        at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:176) [elasticsearch-5.1.2.jar:5.1.2]

        at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:306) [elasticsearch-5.1.2.jar:5.1.2]

        at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:121) [elasticsearch-5.1.2.jar:5.1.2]

        at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:112) [elasticsearch-5.1.2.jar:5.1.2]

        at org.elasticsearch.cli.SettingCommand.execute(SettingCommand.java:54) [elasticsearch-5.1.2.jar:5.1.2]

        at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:122) [elasticsearch-5.1.2.jar:5.1.2]

        at org.elasticsearch.cli.Command.main(Command.java:88) [elasticsearch-5.1.2.jar:5.1.2]

        at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:89) [elasticsearch-5.1.2.jar:5.1.2]

        at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:82) [elasticsearch-5.1.2.jar:5.1.2]

[2017-02-25T12:48:48,723][INFO ][o.e.n.Node               ] [node-1] initializing ...

[2017-02-25T12:48:52,278][INFO ][o.e.e.NodeEnvironment    ] [node-1] using [1] data paths, mounts [[/ (/dev/hdc2)]], net usable_space [7.5gb], net total_space [17.1gb], spins? [possibly], types [ext3]

[2017-02-25T12:48:52,279][INFO ][o.e.e.NodeEnvironment    ] [node-1] heap size [1.9gb], compressed ordinary object pointers [true]

[2017-02-25T12:48:52,283][INFO ][o.e.n.Node               ] [node-1] node name [node-1], node ID [EdHbn3S_Sxm4Cwz0pMxwRQ]

[2017-02-25T12:48:52,461][INFO ][o.e.n.Node               ] [node-1] version[5.1.2], pid[3640], build[c8c4c16/2017-01-11T20:18:39.146Z], OS[Linux/2.6.18-128.el5/amd64], JVM[Oracle Corporation/Java HotSpot(TM) 64-Bit Server VM/1.8.0_111/25.111-b14]

[2017-02-25T12:49:16,001][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [aggs-matrix-stats]

[2017-02-25T12:49:16,001][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [ingest-common]

[2017-02-25T12:49:16,002][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [lang-expression]

[2017-02-25T12:49:16,002][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [lang-groovy]

[2017-02-25T12:49:16,003][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [lang-mustache]

[2017-02-25T12:49:16,004][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [lang-painless]

[2017-02-25T12:49:16,005][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [percolator]

[2017-02-25T12:49:16,006][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [reindex]

[2017-02-25T12:49:16,006][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [transport-netty3]

[2017-02-25T12:49:16,007][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [transport-netty4]

[2017-02-25T12:49:16,008][INFO ][o.e.p.PluginsService     ] [node-1] no plugins loaded

[2017-02-25T12:50:37,721][INFO ][o.e.n.Node               ] [node-1] initialized

[2017-02-25T12:50:37,722][INFO ][o.e.n.Node               ] [node-1] starting ...

[2017-02-25T12:50:43,667][INFO ][o.e.t.TransportService   ] [node-1] publish_address {192.168.1.104:9300}, bound_addresses {192.168.1.104:9300}

[2017-02-25T12:50:43,956][INFO ][o.e.b.BootstrapCheck     ] [node-1] bound or publishing to a non-loopback or non-link-local address, enforcing bootstrap checks

ERROR: bootstrap checks failed

max file descriptors [1024] for elasticsearch process is too low, increase to at least [65536]

[2017-02-25T12:50:44,001][INFO ][o.e.n.Node               ] [node-1] stopping ...

[2017-02-25T12:50:45,189][INFO ][o.e.n.Node               ] [node-1] stopped

[2017-02-25T12:50:45,189][INFO ][o.e.n.Node               ] [node-1] closing ...

[2017-02-25T12:50:45,974][INFO ][o.e.n.Node               ] [node-1] closed

[hadoop@node1 bin]$ ulimit -Hn

1024

处理方案:

[root@node1 ~]# vi /etc/security/limits.conf

# /etc/security/limits.conf

hadoop  soft nofile 65536

hadoop  hard nofile 65536

[root@node1 ~]# sysctl -p

[hadoop@node1 ~]$ ulimit -Hn

65536

[hadoop@node1 ~]$ 

 

[hadoop@node1 bin]$ exit

logout

[root@node1 ~]# su - hadoop

[hadoop@node1 ~]$ cd /opt/es5.0/elasticsearch-5.1.2/bin/

[hadoop@node1 bin]$ ./elasticsearch

[2017-02-25T12:57:44,717][WARN ][o.e.b.JNANatives         ] unable to install syscall filter: 

java.lang.UnsupportedOperationException: seccomp unavailable: requires kernel 3.5+ with CONFIG_SECCOMP and CONFIG_SECCOMP_FILTER compiled in

        at org.elasticsearch.bootstrap.Seccomp.linuxImpl(Seccomp.java:349) ~[elasticsearch-5.1.2.jar:5.1.2]

        at org.elasticsearch.bootstrap.Seccomp.init(Seccomp.java:630) ~[elasticsearch-5.1.2.jar:5.1.2]

        at org.elasticsearch.bootstrap.JNANatives.trySeccomp(JNANatives.java:215) [elasticsearch-5.1.2.jar:5.1.2]

        at org.elasticsearch.bootstrap.Natives.trySeccomp(Natives.java:99) [elasticsearch-5.1.2.jar:5.1.2]

        at org.elasticsearch.bootstrap.Bootstrap.initializeNatives(Bootstrap.java:105) [elasticsearch-5.1.2.jar:5.1.2]

        at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:176) [elasticsearch-5.1.2.jar:5.1.2]

        at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:306) [elasticsearch-5.1.2.jar:5.1.2]

        at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:121) [elasticsearch-5.1.2.jar:5.1.2]

        at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:112) [elasticsearch-5.1.2.jar:5.1.2]

        at org.elasticsearch.cli.SettingCommand.execute(SettingCommand.java:54) [elasticsearch-5.1.2.jar:5.1.2]

        at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:122) [elasticsearch-5.1.2.jar:5.1.2]

        at org.elasticsearch.cli.Command.main(Command.java:88) [elasticsearch-5.1.2.jar:5.1.2]

        at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:89) [elasticsearch-5.1.2.jar:5.1.2]

        at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:82) [elasticsearch-5.1.2.jar:5.1.2]

[2017-02-25T12:57:49,258][INFO ][o.e.n.Node               ] [node-1] initializing ...

[2017-02-25T12:57:49,893][INFO ][o.e.e.NodeEnvironment    ] [node-1] using [1] data paths, mounts [[/ (/dev/hdc2)]], net usable_space [7.5gb], net total_space [17.1gb], spins? [possibly], types [ext3]

[2017-02-25T12:57:49,894][INFO ][o.e.e.NodeEnvironment    ] [node-1] heap size [1.9gb], compressed ordinary object pointers [true]

[2017-02-25T12:57:49,902][INFO ][o.e.n.Node               ] [node-1] node name [node-1], node ID [EdHbn3S_Sxm4Cwz0pMxwRQ]

[2017-02-25T12:57:50,010][INFO ][o.e.n.Node               ] [node-1] version[5.1.2], pid[3837], build[c8c4c16/2017-01-11T20:18:39.146Z], OS[Linux/2.6.18-128.el5/amd64], JVM[Oracle Corporation/Java HotSpot(TM) 64-Bit Server VM/1.8.0_111/25.111-b14]

[2017-02-25T12:58:04,978][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [aggs-matrix-stats]

[2017-02-25T12:58:04,980][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [ingest-common]

[2017-02-25T12:58:04,981][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [lang-expression]

[2017-02-25T12:58:04,982][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [lang-groovy]

[2017-02-25T12:58:04,983][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [lang-mustache]

[2017-02-25T12:58:04,984][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [lang-painless]

[2017-02-25T12:58:04,992][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [percolator]

[2017-02-25T12:58:04,996][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [reindex]

[2017-02-25T12:58:04,997][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [transport-netty3]

[2017-02-25T12:58:04,998][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [transport-netty4]

[2017-02-25T12:58:04,999][INFO ][o.e.p.PluginsService     ] [node-1] no plugins loaded

[2017-02-25T12:59:42,643][INFO ][o.e.n.Node               ] [node-1] initialized

[2017-02-25T12:59:42,644][INFO ][o.e.n.Node               ] [node-1] starting ...

[2017-02-25T12:59:43,710][INFO ][o.e.t.TransportService   ] [node-1] publish_address {192.168.1.104:9300}, bound_addresses {192.168.1.104:9300}

[2017-02-25T12:59:43,755][INFO ][o.e.b.BootstrapCheck     ] [node-1] bound or publishing to a non-loopback or non-link-local address, enforcing bootstrap checks

[2017-02-25T12:59:47,780][WARN ][o.e.m.j.JvmGcMonitorService] [node-1] [gc][young][2][7] duration [3.7s], collections [1]/[3.9s], total [3.7s]/[8.4s], memory [83.6mb]->[27.7mb]/[1.9gb], all_pools {[young] [58.9mb]->[340.8kb]/[66.5mb]}{[survivor] [8.3mb]->[8.3mb]/[8.3mb]}{[old] [16.3mb]->[19.4mb]/[1.9gb]}

[2017-02-25T12:59:47,794][WARN ][o.e.m.j.JvmGcMonitorService] [node-1] [gc][2] overhead, spent [3.7s] collecting in the last [3.9s]

[2017-02-25T12:59:52,205][INFO ][o.e.c.s.ClusterService   ] [node-1] new_master {node-1}{EdHbn3S_Sxm4Cwz0pMxwRQ}{X8YXs6i8SoyGLG2PUvhrVg}{192.168.1.104}{192.168.1.104:9300}, reason: zen-disco-elected-as-master ([0] nodes joined)

[2017-02-25T12:59:52,716][INFO ][o.e.g.GatewayService     ] [node-1] recovered [0] indices into cluster_state

[2017-02-25T12:59:52,912][INFO ][o.e.h.HttpServer         ] [node-1] publish_address {192.168.1.104:9200}, bound_addresses {192.168.1.104:9200}

[2017-02-25T12:59:52,912][INFO ][o.e.n.Node               ] [node-1] started




  • 大小: 25.1 KB
0
0
分享到:
评论

相关推荐

    elasticsearch-bulk-insert-plugin.zip

    ETL工具kettle7.1抽取数据目前不支持elasticsearch 2.X以上版本,如果想要支持elasticsearch 6.X以上版本,必须替换elasticsearch-bulk-insert-plugin插件,该资源提供该插件的替换。 具体步骤为在spoon kettle\data-...

    elasticsearch5.X 安装和head插件安装

    ES和ES-HEAD插件的安装,这是5.x版本的安装步骤可以帮助大家安装ES用来学习使用

    ElasticSearch-head懒人包

    ElasticSearch-head,所有依赖都安装在目录下,免去安装各种报错的痛苦,可离线使用,在redhat6.5上使用正常 使用步骤: 1、解压缩 tar -zxvf elasticsearch-head-all.tar.gz -C /usr/local/ 2. 切换到该目录下,...

    ElasticSearch环境搭建详细步骤

    ElasticSearch5以上版本安装Head前,需要先安装node和grunt。 安装node node安装文件的下载地址为 https://nodejs.org/en/download/ 选择msi格式进行下载。 安装完成后,用cmd进入node安装目录,执行 node ...

    Elasticsearch 7.x 单机多node部署步骤 X-Pack设置用户密码+安装包

    详细Elasticsearch 7.x 安装步骤,采用单机单程序多目录启动多个node程序,X-Pack设置用户密码,配置开机自启

    ElasticSearch使用步骤

    ElasticSearch使用步骤入门,适合刚开始认识的人使用。

    es-head 谷歌浏览器插件

    安装步骤:点击浏览器右上角->更多工具->扩展程序->加载已解压的扩展程序(右上角打开开发者模式才可以看到)->选择本地下载压缩包(elasticsearch5.x-head-chrome)

    详解centos7虚拟机安装elasticsearch5.0.x-安装篇

    centos7虚拟机安装elasticsearch5.0.x-安装篇 请预先安装jdk详细步骤请参考://www.jb51.net/softjc/193398.html 创建新用户(非root用户) elasticsearch只能用非root启动,这里我创建了一个叫seven的用户 [root@...

    elasticsearch6.3 xpack破解jar包

    elasticsearch6.3 xpack破解jar包,需替换es_home下modules/x-pack/x-pack-core下的x-pack-core-6.3.0.jar文件,同时参考https://blog.csdn.net/lilongsy/article/details/78987784申请license并发送license注册申请...

    Elasticsearch Sense插件

    Elasticsearch Sense插件 ElasticSearch在Chrome下的命令操作插件 安装到Chrome的步骤请自行谷歌

    x-pack-5.6.4.jar

    x-pack-5.6.4.jar 是 elk 必备文件 5.6.4 X-Pack elasticsearch logstash kibana 步骤:下载本文件,替换elasticsearch里同名文件,重启es、kibana,申请注册文件,修改注册文件到永久,注册,搞定。 参考: ...

    elasticsearch5.2.x学习历程搭建文档及问题和工具类

    elasticsearch5.2.x初学步骤 按序号学习 基础知识、集群安装、head安装、ik测试、工具类

    es xpack 配置详情

    es xpack 配置详情 7.10.1,通过安装 es kibana,使用自带的 x pack 插件来完成权限控制,网上很多都不全,本文非常详细。es kibana 版本号为 7.10.1 与 7.10.0,并且附带相关的步骤,以及方案。

    ELK安装步骤_Linux

    一、 安装 jdk8 tar –zxvf jdk-8u151-linux-x64.tar.gz 创建运行ELK的用户 [root@localhost local]# groupadd elk [root@localhost local]# useradd -g elk elk chown -R elk:elk /elk vi /etc/profile export ES_...

    elasticsearch6 聚合查询普通分页demo

    聚合查询分页测试termsAgg.size(2147483647); //指定最大统计显示多少行步骤1:全量聚合,size设置为: 2147483647。 ES5.X/6.X版本设置为2147483647 ,它等于2^31-1,请看该地方代码

    Elasticsearch-on-Azure:Vagrantfile 用于部署在 Azure 上运行的 ELK 堆栈 Elasticsearch、Logstash 和 Kibana,以便在 senseHCMC 项目中使用。 从 https 导入

    ###安装 vagrant-azure 插件### vagrant 插件安装 vagrant-azure ###Install openssl### Chocolatey install openssl.light -y ###设置和上传 Azure 管理证书### openssl req -x509 -nodes -days 365 -newkey rsa:...

    graviteeio 3.5.0 windows 版 所有依赖安装包打包发布

    安装文档 ...elasticsearch-7.10.1.msi mongodb-windows-x86_64-4.4.2-signed.msi 亲测可以安装, 安装步骤 1、 jdk 2、 mongodb 3、elasticsearch 4、启动 graviteeio-gateway-3.5.0

    elastic-apm-mule3-agent:适用于Mule 3.x的Elastic APM代理

    它提供了一种非侵入性的方式来度量和基准化Mule中的各个流程和步骤,并添加了对Mule组件的应用程序性能监控,以与日志,指标和其他数据一起驻留在Elasticsearch中。 Mule APM代理支持分布式跟踪,允许使用传输协议...

    java7源码-ELK-install:ELK-安装

    Elasticsearch Kibana Filebeat Nginx 下面对其安装方式进行依次讲解 java 亲测java7存在不可描述的问题,所以请安装java8。 cd ~ wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=...

    centos8 ELK安装步骤以及相关注意点

    CentOS 8 安装ELK 7.x 本次示例使用的是阿里云的机器,系统CentOS8 常见的问题的原因以及处理

Global site tag (gtag.js) - Google Analytics